Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.WriteDemoText
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
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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 |
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.
Please use bottom-up coordinates as with the text is mirrored with top-down coordinates, see DynaPDF.SetPageCoords.
Examples
Add chinese text:
Set Variable [ $r ; Value: MBS("DynaPDF.WriteDemoText"; $pdf; "机密文件"; "Arial Unicode MS" ) ]
See also
- DynaPDF.New
- DynaPDF.SetAlpha
- DynaPDF.SetPageCoords
- DynaPDF.SetStrokeColor
- DynaPDF.WriteFText
- DynaPDF.WriteStyledText
- DynaPDF.WriteText
Release notes
- Version 8.5
- Upgraded DynaPDF.WriteDemoText to use Unicode instead of Windows ANSI encoding for text.
Example Databases
Blog Entries
- Things you can do with DynaPDF
- DynaPDF Screenshot
- MBS FileMaker Plugin, version 8.5pr3
- MBS FileMaker Plugin 5.0 for OS X/Windows - More than 3000 Functions In One Plugin
- MBS Filemaker Plugin, version 4.5pr1
This function checks for a license.
Created 12nd November 2014, last changed 13th August 2023