DynaPDF Manual - Page 434

Previous Page 433   Index   Next Page 435

Function Reference
Page 434 of 818
char* pdfGetJavaScriptName(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Handle of global JavaScript
UI32 ADDR Len,
// Name length in characters
LBOOL ADDR Unicode) // If true, the name is in Unicode format
The function returns the name of a global JavaScript. The parameter Handle must be a valid handle
of a global JavaScript. If the parameter Unicode is true the returned string is in Unicode format. Make
a typecast to UI16* in this case. The parameter Len holds the string length in characters.
Use the function GetJavaScriptCount() to determine the number of available scripts. The handles of
global JavaScripts are simple array indexes.
Return value:
If the function succeeds the return value is the JavaScript as Ansi or Unicode string. If the function
fails the return value is NULL.
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().

Previous topic: GetJavaScriptCount, GetJavaScriptEx

Next topic: GetLastTextPosX, GetLastTextPosY

Start Chat