Xojo Conferences
MBSOct2019CologneDE
XDCMarch2020NashvilleUS

DynaPDF Manual - Page 198

Previous Page 197   Index   Next Page 199

Function Reference
Page 198 of 770
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: ConnectPageBreakEvent, ConvColor