Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Writes the PDF to the given file path.

Component Version macOS Windows Linux Server iOS SDK
PDFKit 3.1 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "PDFKit.WriteToPath"; PDF; Path )   More


Parameter Description Example
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

Release notes

Example Databases

Blog Entries

This function checks for a license.

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

PDFKit.Watermark - PDFKit.allowsCopying