Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  


Writes a demo text like the DynaPDF demo watermark.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 5.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.WriteDemoText"; PDF; Text { ; Font } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Text The text to use. "Hello World"
Font The font to use.
If the font used does not support all characters, the text may not show.
Default is Helevtica.
"Arial Unicode MS" Optional


Returns OK or error.


Writes a demo text like the DynaPDF demo watermark.
This allows you to watermark PDFs with a text like "Confidential".
If you use DynaPDF.SetAlpha, you can change the transparency. With DynaPDF.SetStrokeColor you can change the color.


Add chinese text:

Set Variable [ $r ; Value: MBS("DynaPDF.WriteDemoText"; $pdf; "机密文件"; "Arial Unicode MS" ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a paid license.

Created 12nd November 2014, last changed 15th October 2018

DynaPDF.WebLink - DynaPDF.WriteFText

💬 Ask a question or report a problem

Start Chat