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
DynaPDF.AppendImagePage
Adds new page to the PDF with given image.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 6.3 | Yes | Yes | Yes | Yes | Yes |
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.
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.InsertImageFile
- DynaPDF.New
- DynaPDF.OpenOutputFile
- DynaPDF.ReadImageFormat
- DynaPDF.ReadImageResolution
- DynaPDF.Release
- DynaPDF.Save
- WIA.Images
Blog Entries
Release notes
- Version 9.1
- Fixed bug with image indexes for DynaPDF.AppendImagePages function.
Created 27th June 2016, last changed 27th June 2016
DynaPDF.AllowPageBreak - DynaPDF.AppendImagePages
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins