DynaPDF Manual - Page 630

Previous Page 629   Index   Next Page 631

Function Reference
Page 630 of 839
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If
the function fails the return value is a negative error code.
PrintPage
Syntax:
LBOOL pdfPrintPage(
const PPDF* IPDF,
// Instance pointer
UI32 PageNum,
// The page that should be printed
const char* DocName,
// Optional document name (default value "out")
const void* DC,
// Required, a printer device context
TPDFPrintFlags Flags,
// Various flags (see PrintPDFFile() below)
struct TRectL* Margin, // Optional additional margins (in Pixels)
struct TPDFPrintParams* Parms); // See description in PrintPDFFile()
The function prints the page PageNum to the specified device context. The first page is denoted by
one. At time of publication the function is implemented on Windows only and pages are printed as
image.
The function parameters are described in detail at PrintPDFFile().
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
PrintPDFFile
Syntax:
LBOOL pdfPrintPDFFile(
const PPDF* IPDF,
// Instance pointer
const char* TmpDir,
// Ignored, defined for future use
const char* DocName,
// Optional document name (default value "out")
const void* DC,
// Required, a printer device context
TPDFPrintFlags Flags,
// See below
struct TRectL* Margin, // Optional additional margins (in Pixels)
struct TPDFPrintParams* Parms) // Optional print parameters, see below
typedef enum
{
pffDefault
= 0,
// Gray printing
pff1Bit
= 1,
// Recommended for b&w printers
pffColor
= 2,
// Color printing
pffAutoRotateAndCenter = 4,
// Rotate and center pages if necessary
pffPrintAsImage
= 8,
// Default on Windows
pffShrinkToPrintArea
= 16,
// Useful if a page contains no margins
pffNoStartDoc
= 32,
// Do not call StartDoc on Windows
pffNoStartPage
= 64,
// Do not call StartPage on Windows
 

Previous topic: PolyLineAnnot

Next topic: Output color format, Progress callback functions, Print flag pffNoStartPage