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

DynaPDF Manual - Page 192

Previous Page 191   Index   Next Page 193

Function Reference
Page 192 of 750
Remarks:
Paths are invisible until they will be filled or stroked. DynaPDF displays a warning if an unused path
is in memory when drawing an image, text, or when closing the page. The function checks whether a
path is in memory prior execution. If no open path is detected the function returns with an error
message.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
CloseTag
Syntax:
LBOOL pdfCloseTag(
const PPDF* IPDF) // Instance pointer
The function closes the current open tag that was opened by OpenTag() beforehand.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ComputeBBox
Syntax:
LBOOL pdfComputeBBox(
const PPDF* IPDF,
// Instance pointer
struct TPDFRect ADDR BBox, // TPDFRect structure
TCompBBoxFlags Flags)
// See below
typedef UI32 TCompBBoxFlags;
#define cbfNone
0x00000000
#define cbfIgnoreWhiteAreas
0x00000001 // Ignore white areas
#define cbfParse1BitImages
0x00000002 // Process 1 bit images
#define cbfParseGrayImages
0x00000004 // Process gray images.
#define cbfParseColorImages
0x00000008 // Process color images
#define cbfParseAllImages
0x0000000E // Process all images.
The function computes the visible area of the current opened page. If images are processed,
DynaPDF decompresses the images and computes the visible area by checking for non-white pixels.
Images which use a complex color space like DeviceN or Separation are converted into the alternate
color space beforehand. Please note that every non-white pixel is considered as part of the visible
area.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: ClosePath

Next topic: ConvColor