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


Writes the PDF to the given file path.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PDFKit 3.1 Yes No Yes, macOS only No Yes
MBS( "PDFKit.WriteToPath"; PDF; Path )   More


Parameter Description Example value
PDF A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open.
Path A valid native file path. "/Users/test/Desktop/test.pdf"


Returns OK or error message.


Writes the PDF to the given file path.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.


Load PDF, Write PDF and release it.

$h = MBS("PDFKit.OpenPath"; "/Users/cs/Desktop/test.pdf")
$r = MBS("PDFKit.WriteToPath"; $h; "/Users/cs/Desktop/output.pdf")
$r = MBS("PDFKit.Release"; $h)

See also

Example Databases

Blog Entries

Release notes

Created 18th August 2014, last changed 5th September 2014

PDFKit.Watermark   -   PDFKit.allowsCopying

Feedback: Report problem or ask question.

MBS Xojo Plugins