Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PDFKit.WriteToPath
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
Parameters
Parameter | Description | Example |
---|---|---|
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" |
Result
Returns OK or error message.
Description
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.
Examples
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
- Path.FileMakerPathToNativePath
- PDFKit.AddEmptyPage
- PDFKit.AddImagePage
- PDFKit.Open
- PDFKit.OpenPath
- PDFKit.Release
- PDFKit.SetCurrentFilter
- PDFKit.SetPDFAttribute
- PDFKit.SetPDFPageRotation
- PDFKit.Watermark
Release notes
- Version 8.0
- Changed PDFKit.WriteToPath to report errors better.
- Version 7.4
- Changed PDFKit.WriteToPath to now also use quartz filter.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 7.6pr2
- MBS FileMaker Plugin, version 7.4pr3
- MBS Filemaker Plugin, version 3.2pr4
This function checks for a license.
Created 18th August 2014, last changed 5th September 2014