Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

DynaPDF.WriteDemoText

Writes a demo text like the DynaPDF demo watermark.

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

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

Add chinese text:

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

See also

Example Databases

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


DynaPDF.WebLink   -   DynaPDF.WriteFText

Feedback: Report problem or ask question.




Links
MBS FileMaker blog