DynaPDF Manual - Page 412

Previous Page 411   Index   Next Page 413

Function Reference
Page 412 of 787
LBOOL pdfGetIsTaggingEnabled(
const PPDF* IPDF) // Instance pointer
This function can be used to determine whether tagging is enabled. If the function is called within
an open page then it checks whether tagging is enabled for this page. EditPage() does not fully
disable tagging when the structure information of a specific page is damaged.
When the function is called outside of an open page then it checks whether tagging for the entire
document is enabled. Tagging can be disabled when a page of a PDF file with tagging information
was imported while a structure tree was already in memory.
Return values:
If tagging is enabled the return value is 1. If tagging is disabled the return value is 0.
double pdfGetItalicAngle(
const PPDF* IPDF) // Instance pointer
The function returns the italic angle in degrees that will be used to emulate italic font styles. This
value is only used if an italic version of the wished font could not be found. See SetItalicAngle() for
further information.
Default value = 14.0
char* pdfGetJavaScript(
const PPDF* IPDF,
// Instance pointer
UI32 AHandle,
// Handle of global JavaScript
UI32 ADDR Len,
// String length in characters
LBOOL ADDR Unicode) // If true, the return value is a Unicode string
The function returns a global JavaScript as string. The parameter AHandle must be a valid handle of
a global JavaScript. The parameter Len holds the string length in characters without null-terminator.
If Unicode is true, the return value is a Unicode string. Make a typecast to UI16* in the latter case.
The parameters Len and Unicode must both not be NULL.
The returned string is a pointer to the original value. Do not change or free the string.
To enumerate all JavaScripts of a document use the function GetJavaScriptCount() and use this
value in a simple for statement:

Previous topic: GetInRepairMode, GetIsFixedPich

Next topic: GetJavaScriptAction (obsolete)

Start Chat