Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 558

Previous Page 557   Index   Next Page 559

Function Reference
Page 558 of 750
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
struct TRectL* Margin, // Optional additional margins
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
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
}TPDFPrintFlags;
 

Previous topic: PolyLineAnnot

Next topic: Print flag pffNoStartPage