Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
PDFKit.WriteToPath
Writes the PDF to the given file path.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| PDFKit | 3.1 | Yes | No | No | Yes, macOS only | Yes |
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
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 7.6pr2
- MBS FileMaker Plugin, version 7.4pr3
- MBS Filemaker Plugin, version 3.2pr4
Release notes
- Version 8.0
- Changed PDFKit.WriteToPath to report errors better.
- Version 7.4
- Changed PDFKit.WriteToPath to now also use quartz filter.
Created 18th August 2014, last changed 5th September 2014
PDFKit.Watermark - PDFKit.allowsCopying
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos