DynaPDF Manual - Page 386
Previous Page 385 Index Next Page 387

Function Reference
Page 386 of 860
atPrinterMark, // PDF 1.4
atProjection,
// PDF 1.7 Extension Level 3
atRichMedia,
// PDF 1.7 Extension Level 3
atScreen,
// PDF 1.5
atTrapNet
// PDF 1.3
}TAnnotType;
The function returns the type of a specific annotation. The parameter Handle must be a valid
annotation handle. If the function succeeds the return value is the annotation type (make a type cast
to TAnnotType to determine the annotation type). If the function fails the return value is a negative
error code.
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.
Previous topic: GetAnnotTextAlign, GetAnnotType
Next topic: GetBBox