Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Write the current rich text document to a PDF file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RichText | 5.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
Parameter | Description | Example |
---|---|---|
Path | A valid native file path. | "/Users/test/Desktop/test.pdf" |
Returns OK or error.
Convert doc/docx/rtf file in container to PDF:
Set Variable [$temppath; Value:MBS( "Path.AddPathComponent"; MBS( "Folders.UserTemporary" ); "temp.pdf")]
Set Variable [$r; Value:MBS( "RichText.ReadContainer"; test::MyContainerDoc )]
Set Variable [$r; Value:MBS( "RichText.WritePDF"; $temppath )]
Set Variable [$r; Value:MBS( "RichText.Release" )]
Set Field [test::MyContainerPDF; MBS("Files.ReadFile"; $temppath; "PDF"; "test.pdf")]
This function checks for a license.
Created 14th March 2015, last changed 25th January 2024