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

DynaPDF Manual - Page 589

Previous Page 588   Index   Next Page 590

Function Reference
Page 589 of 750
SetFontEx() before calling this function. The new text is internally written with the function
WriteTextMatrixEx().
This function changes certain members of the graphics state such as the fill and stroke color, the color
space and the text draw mode. If further contents must be written to the file make sure that the color
space, text draw mode, and the whished fill and stroke color is initialized with the whished values
before writing new contents to the file.
DynaPDF is delivered with the example edit_text which demonstrates how texts can be replaced in a
document. If you want to develop a text replacement algorithm please take a look into this example.
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ResetEncryptionSettings
Syntax:
LBOOL pdfResetEncryptionSettings(
const PPDF* IPDF) // Instance pointer
The function resets the encryption settings which were imported from an external PDF file so that
the PDF file in memory can be saved unencrypted.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ResetLineDashPattern
Syntax:
LBOOL pdfResetLineDashPattern(
const PPDF* IPDF) // Instance pointer
The function resets a previously defined line dash pattern to its default value (straight line). A line
dash pattern can also be removed or reset with the following function call:
SetLineDashPattern(pdf, NULL, 0);
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: ReplacePageTextEx

Next topic: RestoreGraphicState