I need a snippet that will open an existing PDF document, and print an arbitrary page from it.
If it takes any library or component to do it, it must be available free of charge (or must ship with Delphi 7).
It would be most desirable if it was also possible to print several separate pages as one single print job.
In pseudocode, it would look like this:
PDF_File.StartPrintJob('SomePrinter'); // Default printer is just fine. I don't care
PDF_File.ClosePrintJobAndDamnPrintIt; // :-)
To print pages 34, 122, and 345 without giving the chance of other users sending anything to the printer between one of my pages and another.
I also don't care if it is done directly with Delphi, or if it uses Automation to have Acrobat Reader do it.
Thanks very much for your help: