DynaPDF Manual - Page 432
Previous Page 431 Index Next Page 433
Function Reference
Page 432 of 839
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.
GetInDocInfo
Syntax:
SI32 pdfGetInDocInfo(
const PPDF* IPDF,
// Instance pointer
TDocumentInfo DInfo, // Document info entry
UI16* ADDR Value)
// Value as Unicode string (null-terminated)
typedef enum
{
diAuthor
= 0,
diCreator
= 1,
diKeywords
= 2,
diProducer
= 3,
diSubject
= 4,
diTitle
= 5,
diCompany
= 6,
diPDFX_Ver
= 7,
// GetInDocInfo() or GetInDocInfoEx()
diCustom
= 8,
// Not supported -> Use GetInDocInfoEx()
diPDFX_Conf
= 9,
// GetInDocInfo() or GetInDocInfoEx()
diCreationDate = 10, // Available after a PDF file was imported
diModDate
= 11
// GetInDocInfo() or GetInDocInfoEx()
}TDocumentInfo;
The function retrieves a document info entry from an external PDF file as Unicode string. The
external PDF file must be opened with the function OpenImportFile() or OpenImporBuffer()
beforehand. The parameter Value holds a pointer to the original Unicode value, it must not be
NULL. Do not change or free the value. This function support predefined document info entries
only. User defined entries, as well as predefined entries can be enumerated with GetDocInfoEx().
Previous topic: GetImportDataAction, GetImportFlags, GetImportFlags2, GetInBBox
Next topic: GetInDocInfoCount, GetInDocInfoEx