DynaPDF Manual - Page 183

Previous Page 182   Index   Next Page 184

Function Reference
Page 183 of 818
ChangeFontStyle
Syntax:
LBOOL pdfChangeFontStyle(
const PPDF* IPDF, // Instance pointer
TFStyle Style)
// New font style
typedef SI32 TFStyle;
#define fsNone
0
#define fsUnderlined 4
#define fsStriked
8
This function changes the style of the current font. Only the style flags fsUnderlined and fsStriked
can be set with this function. The font styles fsBold and fsItalic requires another font file that must
be selected with SetFont().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ChangeFontStyleEx
Syntax:
LBOOL pdfChangeFontStyleEx(
const PPDF* IPDF, // Instance pointer
TFStyle Style)
// New font style
The function changes the font style of a font like ChangeFontStyle() but it accepts also font styles
like fsBold or fsItalic. These flags can be used to explicitely enable the emulation of a missing font
style.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ChangeJavaScript
Syntax:
SI32 pdfChangeJavaScript(
const PPDF* IPDF,
// Instance pointer
UI32 AHandle,
// Handle of global JavaScript
const char* NewScript) // New JavaScript
The function replaces a global JavaScript with a new one. The parameter AHandle must be a valid
handle of a global JavaScript. The parameter NewScript must be a valid JavaScript. The script is not
checked by DynaPDF whether it is valid or not. Note that older Acrobat versions do not support all
JavaScript functions. Due to several bugs in certain Acrobat versions invalid scripts can cause access
violations in Adobe's Acrobat. Test your scripts carefully with all Acrobat versions which must be
supported.
 

Previous topic: ChangeFont, ChangeFontEx, ChangeFontSize

Next topic: ChangeJavaScriptAction, ChangeJavaScriptName


Start Chat