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: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  


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
MBS( "DynaPDF.AppendImagePages"; PDF; Image Paths { ; Resolution } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
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


Returns number or error.


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.


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

Release notes

Example Databases

Blog Entries

This function checks for a paid license.

Created 27th June 2016, last changed 17th August 2022

DynaPDF.AppendImagePage - DynaPDF.AppendPage

💬 Ask a question or report a problem

Start Chat