Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Adds new page to the PDF with given image.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 6.3 Yes Yes Yes Yes Yes
MBS( "DynaPDF.AppendImagePage"; PDF; Image Container { ; Resolution } )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Image Container The container with the image to insert.
Resolution Optional
The resolution to use.
Normally we use the ones in the images, but you can overwrite it here.


Returns OK or error.


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.


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

Blog Entries

Created 27th June 2016, last changed 27th June 2016

DynaPDF.AllowPageBreak   -   DynaPDF.AppendImagePages

Feedback: Report problem or ask question.

MBS FileMaker Plugins