Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.AppendImagePage
Adds new page to the PDF with given image.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.AppendImagePage"; PDF; Image Container { ; Resolution } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Image Container | The container with the image to insert. | ||
Resolution | The resolution to use. Normally we use the ones in the images, but you can overwrite it here. |
300 | Optional |
Result
Returns OK or error.
Description
Adds new page to the PDF with given image.This is a convenience function. It creates a page (DynaPDF.AppendPage), reads image format (DynaPDF.ReadImageFormat) and resolution (DynaPDF.ReadImageResolution) and places image on the new page (DynaPDF.InsertImageFile).
Returns number of images added. Because TIFF files can include several images, this count may be higher than 1.
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
Create PDF with an image:
Set Variable [$pdf; Value:MBS("DynaPDF.New")]
# new page with container image
Set Variable [$r; Value:MBS( "DynaPDF.AppendImagePage"; $pdf; Create Text::test)]
#Render one page as Picture
Set Variable [$PDFData; Value:MBS("DynaPDF.Save"; $pdf; "hello.pdf")]
# cleanup
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]
#Put in Container
Set Field [Create Text::PDF; $PDFData]
See also
- DynaPDF.AppendImagePages
- DynaPDF.AppendPage
- DynaPDF.InsertImage
- DynaPDF.InsertImageFile
- DynaPDF.New
- DynaPDF.ReadImageFormat
- DynaPDF.ReadImageResolution
- DynaPDF.Release
- DynaPDF.Save
- WIA.Images
Release notes
- Version 12.5
- Fixed bug in DynaPDF.AppendImagePage, where we missed last image in a multi image picture.
- 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.
Blog Entries
- MBS FileMaker Plugin, version 12.5pr1
- MBS FileMaker Plugin, version 12.4pr3
- Things you can do with DynaPDF
- MBS FileMaker Plugin 6.3 for OS X/Windows
- MBS FileMaker Plugin, version 6.3pr5
FileMaker Magazin
This function checks for a license.
Created 27th June 2016, last changed 25th September 2024
