Xojo Conferences
MBSOct2019CologneDE
XDCMarch2020NashvilleUS

DynaPDF Manual - Page 394

Previous Page 393   Index   Next Page 395

Function Reference
Page 394 of 770
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetImageWidth
Syntax:
SI32 pdfGetImageWidth(
const PPDF* IPDF, // Instance pointer
UI32 AHandle)
// Image handle
The function returns the width of an image in pixel. This value is may be smaller than the width of
the original image, if it was downscaled by DynaPDF.
Return values:
If the function succeeds the return value is the width of the image in pixel. If the function fails the
return value is a negative error code.
GetImportDataAction
Syntax:
LBOOL pdfGetImportDataAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Action handle
struct TPDFImportDataAction* Action) // see below
struct TPDFImportDataAction
{
UI32
StructSize;
// Must be set to sizeof(TPDFImportDataAction).
struct TPDFFileSpecEx Data;
// The data or file to be loaded.
SI32
NextAction;
// -1 or next action handle to be executed if any
TActionType
NextActionType; // Only set if NextAction is >= 0.
};
The function retrieves the properties of an Import Data Action. The member StructSize must be set to
sizeof(TPDFImportDataAction) before the function can be called. The struture TPDFFileSpecEx is
described in detail at GetFileSpec(). It is not required to initialize the member StructSize of this
struture too.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetImportFlags
Syntax:
UI32 pdfGetImportFlags(
const PPDF* IPDF) // Instance pointer
The function returns the current import flags used to import PDF files. The flags are described in
detail at SetImportFlags().
 

Previous topic: GetImageObjCount, GetImageObjEx

Next topic: GetImportFlags2, GetInBBox