DynaPDF Manual - Page 631

Previous Page 630   Index   Next Page 632

Function Reference
Page 631 of 839
= 128, // Do not call EndDoc on Windows
= 256, // Do not scale or rotate a page to fit into the printable area
= 512, // Rotate the page if necessary
= 1024 // Center the page
struct TPDFPrintParams
// Must be set to sizeof(TPDFPrintParams).
// Meaningful only for image output. If true, compressed images
// are send to the printer.
TCompressionFilter FilterGray;
// Meaningful only for image output. Supported filters on
// Windows: cfFlate and cfJPEG.
TCompressionFilter FilterColor;
// Meaningful only for image output. Supported filters on
// Windows: cfFlate and cfJPEG.
// JPEG Quality in percent (1..100). Zero == Default == 60%.
// Maximum print resolution. Zero == Default == 600 DPI.
IgnoreDCSize; // If true, PageSize is used to calculate the output format.
// Considered only, if IgnoreDCSize is set to true.
The function prints the PDF file that is currently in memory. At time of publication the function is
implemented on Windows only and pages are printed as image.
The parameter DocName is optional but should be set if possible. The document name is set to "out"
if no name is provided.
Output color format
It is possible to determine which color formats a printer supports as input, but it is not possible to
determine whether a printer outputs black & white, gray shades, or color. The default should be set
to gray or 1 bit but the user should be able to configure the color format.
Progress callback functions
The function calls the progress callback functions if set (see SetProgressProc() for further
information). TInitProgressProc is called with ProgType set to ptPrintPage and MaxCount is set to the
number of pages.
The progress callback function is called right before the next page is send to the printer (right before
StartPage() is called). The progress callback function must return zero to continue processing. Any
other return value breaks processing.
Print flag pffNoStartPage
If the flag pffNoStartPage is set, the function behaves as follows:
The Windows function StartPage() must be called inside the progress callback function. The
progress callback function is required if the flag pffNoStartPage ist set! The progress callback
functions can be set with SetProgressProc().
If ActivePage is greater 1, the Windows function EndPage() must be called.
If the return value of the progress callback function should be non-zero to break processing,
the function must still call EndPage() if ActivePage is greater 1.

Previous topic: PrintPage, PrintPDFFile

Next topic: Maximum output resolution, Print parameters, Visual Basic 6 interface