DynaPDF Manual - Page 568

Previous Page 567   Index   Next Page 569

Function Reference
Page 568 of 839
LBOOL pdfLoadFDFDataEx(
const PPDF* IPDF,
// Instance pointer
const void* Buffer,
// FDF file buffer
UI32 BufSize,
// Buffer size if bytes
const char* Password, // Defined for future use, should be NULL
UI32 Flags)
// Defined for future use, should be 0
The function loads form data from a FDF file (Forms Data Format) like LoadFDFData but it accepts
a file buffer instead. The corresponding form must be imported before the function can be used. See
ImportPDFFile() for further information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SI32 pdfLoadHeaderFooterSettings(
const PPDF* IPDF,
// Instance pointer
struct TPDFHeaderFooter* Init, // Pointer to TPDFHeaderFooter structure
struct TPDFHdrFtr* HFArray)
// Array of 6 TPDFHdrFtr structures
// Only constants which are considered by this function are listed.
typedef enum TPDFHdrFtrFlags
= 8,
// Load all strings in UTF-8 format. The PHP extension uses this flag.
hffLoadBatesN = 32, // Force to load bates number settings.
= 64, // Force to load regular header / footer settings.
= 128 // Scan the file for available header / footer types.
The function loads imported header / footer settings from the PDF file currently in memory. The
function is able to identify header / footer settings independent of the way how they were imported,
e.g. with ImportPDFFile(), ImportPage(), or ImportPageEx().
The parameter HFArray must be an array of six TPDFHdrFtr records. The function sets header /
footer settings in their natural order. That means the indexes 0..2 contain the header definitions of
the alignments left, center, and right. The remaining indexes 3..5 contain the footer definitions of the
very same alignments.
A record whose TextLen is zero must be ignored. Otherwise either the Ansi or Unicode string is set.
If the flag hffLoadUTF8 is absent, the function sets usually TextW, and TextA otherwise. However, the
caller must be able to process both variants. Strings are generally null-terminated.
All Ansi or single byte strings are encoded in the Windows code page 1252 unless the flag
hffLoadUTF8 was set. In the latter case UTF-8 encoded Unicode strings are returned.

Previous topic: LoadFDFData

Next topic: Header / footer types, Loading header / footer or bates number settings, How to check whether a file contains headers or footers?