Welcome! Log In Create A New Profile

Advanced

Direct printing of PDF-file

Posted by Stefan Bentvelsen 
Stefan Bentvelsen
Direct printing of PDF-file
January 20, 2009 10:04AM
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.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: