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.GetPDFDocument
Creates a new PDF Document with the given PDF document.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| PDFKit | 2.2 | Yes | No | No | Yes, macOS only | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open. | |||
| Filename | Optionally, the file name to use for the container value. | "output.pdf" | Optional |
Result
Returns a container with a PDF document. The plugin adds a JPEG picture for preview as well as a file name. You can store it in a media field.
Description
Creates a new PDF Document with the given PDF document.Filename is optional. When you use an URL for the PDF, you can basicly load a new PDF from a server.
Examples
Save a PDF in a PDF reference into a container value:
MBS( "PDFKit.GetPDFDocument"; $ref; "test.pdf" )
Create PDF from images:
# Start new document
Set Variable [$doc; Value:MBS("PDFKit.NewPDFDocument")]
# Add image in full size as new page
Set Variable [$r; Value:MBS("PDFKit.AddImagePage"; $doc; test::image)]
# Add empty page in default size
Set Variable [$r; Value:MBS("PDFKit.AddEmptyPage"; $doc)]
# Add image in given size as new page:
Set Variable [$r; Value:MBS("PDFKit.AddImagePage"; $doc; test::image; 400; 300)]
# get PDF document and store in container:
Set Field [test::test; MBS("PDFKit.GetPDFDocument"; $doc)]
# release memory
Set Variable [$r; Value:MBS("PDFKit.Release"; $doc)]
See also
- PDFKit.AddEmptyPage
- PDFKit.AddImagePage
- PDFKit.AppendPages
- PDFKit.GetPDFPageText
- PDFKit.NewPDFDocument
- PDFKit.Open
- PDFKit.Release
- PDFKit.SetPDFAttribute
- PDFKit.SetPDFPageDisplayAnnotation
- PDFKit.Watermark
Example Databases
- Mac and iOS/PDFKit/Combine PDFs
- Mac and iOS/PDFKit/Encrypt PDF
- Mac and iOS/PDFKit/Pictures to PDF
- Mac and iOS/PDFKit/Watermark PDF Page
Blog Entries
Created 18th August 2014, last changed 16th February 2015
PDFKit.GetPDFAttribute - PDFKit.GetPDFPageCount
Feedback: Report problem or ask question.
Links
MBS Xojo blog