Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.AppendImagePages
Adds new pages to the PDF with given image paths.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Image Paths | The list of native file paths. | "/Users/cs/Desktop/test.jpg" | |
Resolution | The resolution to use. Normally we use the ones in the images, but you can overwrite it here. |
300 | Optional |
Result
Returns number or error.
Description
Adds new pages to the PDF with given image paths.This is a convenience function. It creates pages (DynaPDF.AppendPage), reads image format (DynaPDF.ReadImageFormat) and resolution (DynaPDF.ReadImageResolution) and places image on page (DynaPDF.InsertImageFile).
Returns number of images added. Because TIFF files can include several images, this count may be higher than the number of file paths.
Added PDF support for version 12.4, so you can pass PDF documents here, too.
If you have an open page, we close it automatically for you before doing the import.
Examples
Adds three picture pages:
Set Variable [$r; Value:MBS( "DynaPDF.AppendImagePages"; $pdf; "/Users/cs/Desktop/Auto2.JPG¶/Users/cs/Desktop/Auto4.JPG¶/Users/cs/Desktop/Auto1.JPG" )]
Create PDF with images:
Set Variable [$pdf; Value:MBS("DynaPDF.New")]
# Set destination path
Set Variable [$r; Value:MBS( "DynaPDF.OpenOutputFile"; $pdf; "/Users/cs/Desktop/test.pdf")]
# Add pages
Set Variable [$r; Value:MBS( "DynaPDF.AppendImagePages"; $pdf; "/Users/cs/Desktop/Auto2.JPG¶/Users/cs/Desktop/Auto4.JPG¶/Users/cs/Desktop/Auto1.JPG"; 300 )]
# Save
Set Variable [$PDFData; Value:MBS("DynaPDF.Save"; $pdf; "hello.pdf")]
# Cleanup
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]
See also
- DynaPDF.AppendImagePage
- DynaPDF.AppendPage
- DynaPDF.InsertImage
- DynaPDF.InsertImageFile
- DynaPDF.New
- DynaPDF.OpenOutputFile
- DynaPDF.ReadImageFormat
- DynaPDF.ReadImageResolution
- DynaPDF.Release
- WIA.Images
Release notes
- Version 12.4
- Improved DynaPDF.AppendImagePage and DynaPDF.AppendImagePages to handle PDF, too.
- Version 9.1
- Fixed bug with image indexes for DynaPDF.AppendImagePages function.
Example Databases
Blog Entries
- GraphicsMagick in FileMaker, part 9
- MBS FileMaker Plugin, version 12.4pr3
- Things you can do with DynaPDF
- Create PDF from scanned images and skip blank pages
- MBS FileMaker Plugin, version 9.1pr5
- MBS FileMaker Plugin 6.3 for OS X/Windows
- MBS FileMaker Plugin, version 6.3pr5
This function checks for a license.
Created 27th June 2016, last changed 25th September 2024