Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 604

Previous Page 603   Index   Next Page 605

Function Reference
Page 604 of 766
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 wished fill and stroke color is initialized with the wished 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