Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RichText.GeneratePDF
Generates a PDF from the current rich text document.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RichText | 5.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
MBS( "RichText.GeneratePDF" { ; FileName } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
FileName | The desired file name. | test.png | Optional |
Result
Returns PDF container or error.
Description
Generates a PDF from the current rich text document.Examples
Convert HTML to PDF:
Set Variable [ $r ; Value: MBS( "RichText.ReadHTML"; "<html><body><p><b>Schokoladenplätzchen</b></p></body></html>" ) ]
Set Variable [ $r ; Value: MBS( "RichText.GeneratePDF"; "test.pdf" ) ]
Set Field [ RegEx::test ; $r ]
See also
Blog Entries
This function checks for a license.
Created 14th March 2015, last changed 25th November 2017
