DynaPDF Manual - Page 588

Previous Page 587   Index   Next Page 589

Function Reference
Page 588 of 787
The parameter LineWidth must be in the range 0 through 12 units. Values outside the valid range
will be adjusted to the nearest allowed value. A zero line width produces a 1 pixel wide line.
The line end styles can be changed if necessary with SetAnnotLineEndStyle().
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
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
 

Previous topic: PolyLineAnnot

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

Start Chat