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

DynaPDF Manual - Page 388

Previous Page 387   Index   Next Page 389

Function Reference
Page 388 of 750
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().
Return value:
The return value is the string length in characters. If the info entry is not set it returns 0 and Value is
initialized to NULL. If the function fails the return value is a negative error code.
GetInDocInfoCount
Syntax:
SI32 pdfGetDocInfoCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of available document info entries of the currently opened import
file or a negative error code on failure. The document info entries can be enumerated with
GetInDocInfoEx().
GetInDocInfoEx
Syntax:
SI32 pdfGetDocInfoEx(
const PPDF* IPDF,
// Instance pointer
 

Previous topic: GetInBBox

Next topic: GetInFieldCount