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

DynaPDF Manual - Page 191

Previous Page 190   Index   Next Page 192

Function Reference
Page 191 of 750
LBOOL pdfCloseImportFileEx(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// File handle
The function closes a specific import file and deletes the corresponding parser instance. The
parameter Handle must be a valid file handle that was returned by OpenImportFile() or
OpenImportBuffer(). See OpenImportFile() for further information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
LBOOL pdfClosePath(
const PPDF* IPDF,
// Instance pointer
TPathFillMode FillMode) // see below
typedef enum
// Nonzero Winding Number Rule
// Fill but do not close the path
// Stroke but do not close the path
// Fill and stroke but do not close the path
// Fill the path
// Stroke the path
// Fill and stroke the path
// Even-Odd Rule
// Fill the path
// Fill and stroke the path
// Fill but do not close the path
fmFillStrokeEvOddNoClose, // Fill and stroke but do not close the path
// Discard the path
// Close the path and begin a new sub path
In PDF all vector graphics are paths. Paths can be filled, stroked, or both. Filled path can be drawn by
applying the nonzero winding number rule or the even-odd rule (see Path Construction and Painting
for further information). Both rules produce different results on complex paths but they have no
effect on simple paths like rectangles, circles, and so on.
The filling rules are can be used to produce holes in a path; an area that is left unpainted. The draw
direction is important when drawing simple shapes like rectangles and so on. See
SetDrawDirection() for further information.
The flag fmNoFill can be used to discard a path that was already drawn.

Previous topic: CloseImportFile

Next topic: ComputeBBox