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

DynaPDF Manual - Page 387

Previous Page 386   Index   Next Page 388

Function Reference
Page 387 of 750
GetImportFlags2
Syntax:
UI32 pdfGetImportFlags2(
const PPDF* IPDF) // Instance pointer
The function returns the current import flags used to import PDF files. The flags are described in
detail at SetImportFlags2().
GetInBBox
Syntax:
SI32 pdfGetInBBox(
const PPDF* IPDF,
// Instance pointer
UI32 PageNum,
// Page number of external PDF file
TPageBoundary Boundary,
// Type of bounding box to be returned
struct TPDFRect ADDR BBox) // Bounding box
typedef enum
{
pbArtBox,
// Art box
pbBleedBox, // Bleed box
pbCropBox,
// Crop box
pbTrimBox,
// Trim box
pbMediaBox
// Media box
}TPageBoundary;
struct TPDFRect
{
double Left;
double Bottom;
double Right;
double Top;
};
The function retrieves a bounding box of an external PDF page. The external PDF file must be
opened with the function OpenImportFile() or OpenImporBuffer() beforehand.
The bounding boxes are described in detail under SetBBox().
Return values:
If the function succeeds the return value is 1 and the parameter BBox is filled with values. If the
function fails the return value is 0.
 

Previous topic: GetImportFlags

Next topic: GetInDocInfoEx