Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Write the current rich text document to a PDF file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
RichText 5.1 Yes No Yes, macOS only No No
MBS( "RichText.WritePDF"; Path )   More


Parameter Description Example value
Path A valid native file path. "/Users/test/Desktop/test.pdf"


Returns OK or error.


Write the current rich text document to a PDF file.

Warning: The plugin can only read/write the styles/formats which Apple supports for their cocoa framework.


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")]

See also

Blog Entries

Created 14th March 2015, last changed 14th August 2017

RichText.WriteFile   -   RichText.WriteRTF

Feedback: Report problem or ask question.

MBS Xojo Plugins