DynaPDF Manual - Page 417

Previous Page 416   Index   Next Page 418

Function Reference
Page 417 of 787
SI32 pdfGetJPEGQuality(
const PPDF* IPDF) // Instance pointer
The function returns the current JPEG compression quality which is used when compressing images
with the JPEG or JPEG2000 compression filter. The return value can be negative indicating that the
pass-through mode is disabled. The absolute value represents the wished image quality in percent if
the JPEG compression filter is used.
If the JPEG2000 compression filter is used the value represents a divisor of the uncompressed image
size to the wished compressed image size. The absolute value ranges from 0 to 1000. If the value is 0
or 1000 then the loss-less variant of JPEG2000 compression is used (see also SetJPEGQuality()).
char* pdfGetLanguage(
const PPDF* IPDF) // Instance pointer
The function returns the language identifier of the document as an ISO 3166 language tag or IANA
tag, or NULL if not set. Language tags are defined as normal Ansi string values. The function
returns a pointer to the original string, do not change, or free the value.
The Language identifiers are described in detail under SetLanguage().
GetLastTextPosX, GetLastTextPosY
double pdfGetLastTextPosX/Y(
const PPDF* IPDF) // Instance pointer
The functions return the end position of the last drawn text. The returned y-coordinate is the
position of the text's baseline measured in bottom-up coordinates.
Return values:
If the function succeeds the return value is the x- or y-coordinate. This value can be negative
depending on the coordinate where the string was placed. If the function fails the return value is a
negative error code. An error code is smaller than -33554531.0.
Example 1 (Top Down Coordinates):
pdfSetPageCoords(PDF, pcTopDown);
double fontSize = 20.0;
pdfSetFont(PDF, "Times", fsItalic, fontSize, true, cp1252);

Previous topic: GetJavaScriptEx, GetJavaScriptName

Next topic: GetLaunchAction

Start Chat