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.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

PDFKit.WriteToPath

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 No

MBS( "PDFKit.WriteToPath"; PDF; Path )

Parameters

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"

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

Example Databases


PDFKit.Watermark   -   PDFKit.allowsCopying

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins