Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

RichText.WritePDF

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 )

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

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


RichText.WriteFile   -   RichText.WriteRTF

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins