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.RenderPDFFile
Renders whole PDF file in current PDF to an image.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 5.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. | ||
| DestPath | A file path for storing images. Can be folder for multiple images files or file for one file. If a folder, it must exist. | "/Users/cs/Desktop/test.jpg" |
| Resolution | The resolution you'd like to have for the image. If you pass zero, we use default resolution (72). | 150 |
| Flags | Flags for rendering. Use 0 for the default flags. For other values, please look into dynapdf manual. With version 6.4 of our plugin, you can also specify this by passing in text string, e.g. "Rotate90¶ClipToTrimBox" |
0 |
| PixelFormat | The pixel format. Can be 1bit, gray, RGB, BGR, RGBA, BGRA, ARGB, ABGR, CMYK, CMYKA and GrayA. Default is RGB. | "RGB" |
| Filter | The compression filter to use. Can be Flate, JPEG, CCITT3, CCITT4, LZW or JP2K. Default is JPEG. | "JPEG" |
| Format | The image format to use. Can be TIFF, JPEG, PNG, BMP or JPC. Default is JPEG. | "JPEG" |
Result
Returns OK or error.
Description
Renders whole PDF file in current PDF to an image.You can choose the format and filter, but please make sure they match as not all combinations are valid.
This can write multipage tiff files or a folder of image files.
Requires DynaPDF Pro license for the raster engine to create bitmaps from PDF pages.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Examples
Render PDF to desktop with several JPEG pages:
$result = MBS( "DynaPDF.RenderPDFFile"; $PDF; "/Users/cs/Desktop"; 150; 0; "RGB"; "JPEG"; "JPEG" )
Render TIFF with higher resolution:
$result = MBS( "DynaPDF.RenderPDFFile"; $PDF; "c:\test.tif"; 150; 0; "RGB"; "Flate"; "TIFF" )
See also
- DynaPDF.ImportPDFFile
- DynaPDF.InitColorManagementEx
- DynaPDF.Initialize
- DynaPDF.New
- DynaPDF.RenderPage
- DynaPDF.RenderPDFFileEx
- DynaPDF.SetOCGState
- Path.FileMakerPathToNativePath
Blog Entries
- MBS FileMaker Plugin, version 6.4pr3
- MBS FileMaker Plugin, version 5.3pr1
- MBS Filemaker Plugin, version 4.5pr4
Release notes
- Version 8.0
Created 12nd December 2014, last changed 26th September 2019
DynaPDF.RenameSpotColor - DynaPDF.RenderPDFFileEx
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins