Adobe Distiller is the tool for the job (acrodist.exe) and postscript printer driver.
1.. In your MapBasic appliation, you printwin each page as a postscript file, and build a list of names for processing. This is trickiest step, as you need to wait til the print file's available and rename it from the standard postscript output location. There are various steps, but once "fileexists" succeeds, I loop on a "open, pos to EOF, read location, close" and wait for the EOF location to remain unchanged. (There may be a system call which does this more succinctly) 2.. Create a Distiller job file with commands for thumbnails and listing the page file references. You can create hierarchical, nested bookmarks if you have subset geography to process. 3.. Run Distiller from MapBasic using ExecuteandWait 4.. Clean up all the .ps files. The whole thing is non-trivial. There are a number of timing issues and the masses of temp tables no doubt created need to be closed and deleted along the way, but once running works consistently. Regards, Phil Waight. _______________________________________ SPATIAL PROJECTS Email : [EMAIL PROTECTED] Web: www.spatialprojects.com.au Skype: PhilWaight ----- Original Message ----- From: Bill Thoen To: [email protected] Sent: Friday, February 10, 2006 3:09 AM Subject: [MI-L] Multi-page PDF output I have a MapBasic application that prints maps from layout windows to a PDF driver and all seems to work as far as that goes. However, I've been asked if there is a way when printing several maps in a batch mode, if I can send them all to the same PDF output file, and create a sort of multi-page PDF file. Does anyone know how this can be done using MapBasic? Or are there special PDF printer devices that can allow this? - Bill Thoen _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
