Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 573

Previous Page 572   Index   Next Page 574

Function Reference
Page 573 of 770
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
pffNoEndDoc
= 128, // Do not call EndDoc on Windows
pffPrintPageAsIs
= 256, // Do not scale or rotate a page to fit into the printable area
pffAutoRotate
= 512, // Rotate the page if necessary
pffAutoCenter
= 1024 // Center the page
}TPDFPrintFlags;
 

Previous topic: PolygonAnnot, PolyLineAnnot

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