DynaPDF Manual - Page 371

Previous Page 370   Index   Next Page 372

Function Reference
Page 371 of 839
GetAscent
Syntax:
double pdfGetAscent(
const PPDF* IPDF) // Instance pointer
The function returns the ascender of the active font. The ascender is a typographic value that
specifies the maximum extent to which characters rise above the baseline.
If no font is set the return value is a negative error code.
GetBarcodeDict
Syntax:
LBOOL pdfGetBarcodeDict(
const PPDF* IBarcode,
// Pointer of a barcode dictionary
struct TPDFBarcode* Barcode) // see below
struct TPDFBarcode
{
UI32
StructSize;
// Must be set to sizeof(TPDFBarcode)
const char* CaptionA;
// Optional
const UI16* CaptionW;
// Optional
float
ECC;
// 0..8 for PDF417, or 0..3 for QRCode
float
Height;
// Height in inches
float
nCodeWordCol; // Number of codewords per barcode coloumn
float
nCodeWordRow; // Codewords per barcode row (PDF417)
UI32
Resolution;
// Resolution
const char* Symbology;
// PDF417, QRCode, or DataMatrix.
float
Version;
// Version
float
Width;
// Width in inches
float
XSymHeight;
// Only needed for PDF417. The vertical
// distance between two barcode modules,
// measured in pixels. The ratio XSymHeight /
// XSymWidth shall be an integer value. For
// PDF417, the acceptable ratio range is from
// 1 to 4. For QRCode and DataMatrix, this
// ratio shall always be 1.
float
XSymWidth;
// The horizontal distance, in pixels,
// between two barcode modules.
};
The function returns the properties of a barcode field. The member StructSize must be initialized to
sizeof(TPDFBarcode) before the function can be called. The structure size is used to identify
different versions of the structure. The value of the barcode is stored in the corresponding text field.
Return values:
If the function succeeds the return value is 1 and the structure is filled with values. If the function
fails the return value is zero. Check whether the member StructSize was properly initialized in the
latter case.
 

Previous topic: GetAnnotType

Next topic: GetBBox