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

DynaPDF Manual - Page 401

Previous Page 400   Index   Next Page 402

Function Reference
Page 401 of 750
GetJPEGQuality
Syntax:
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 whished 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 whished 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()).
GetLanguage
Syntax:
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
Syntax:
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);
pdfAppend(PDF);
double fontSize = 20.0;
pdfSetFont(PDF, "Times", fsItalic, fontSize, true, cp1252);
 

Previous topic: GetJavaScriptName

Next topic: GetLaunchAction