Hi all,
I would like a direct function to print a PDF-file, or some pages of a PDF-file in code in a rectangular area. It would be very nice if the source could be a file-item like a binary memo with a PDF-file in it. The syntax of this function could be like:
result=iPrintZonePDF(source, X1, Y1, X2, Y2 [, pagestring])
or
result=iPrintPDF(source, X1, Y1, X2, Y2 [, pagestring])
where
result is a boolean value, true if print was succesfull, other case false
source is the name of a PDF-file (i.e. "C:\MyDocuments\Example.pdf")
or the name of a binary memo file-item which contains a PDF-file
or the name of a image control which contains a PDF-file.
X1,Y1,X2,Y2 are coordinates to define a rectangular area to print a page of the PDF-file in.
pagestring is a string to define the pages to print, i.e. "1-5,8,12-14" to print pages 1 up to 5, 8 and pages 12 up to 14.
Edited 1 time(s). Last edit at 04/28/2011 02:14PM by Stefan Bentvelsen.