DynaPDF Manual - Page 222
Previous Page 221 Index Next Page 223
Function Reference
Page 222 of 839
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.
ConnectPageBreakEvent
Syntax:
Public Sub ConnectPageBreakEvent(
ByVal Connect As Boolean) // If True, the event is connected
This procedure connects the OnPageBreakEvent with the internal callback function so that the event
function can be raised by the wrapper class CPDF. This function is included in the Visual Basic and
VB .Net interfaces only. The manually connection of the event function is required to avoid different
runtime behaviour of the function WriteFText().
Previous topic: ClosePath
Next topic: ConvColor