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

DynaPDF Manual - Page 386

Previous Page 385   Index   Next Page 387

Function Reference
Page 386 of 750
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: GetImageObjEx

Next topic: GetInBBox