Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.ReadImageResolution
The function retrieves the horizontal and vertical resolution of an image file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.ReadImageResolution"; PDF; Container { ; Index } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Container | The image container value. Pass the container field or a variable with the container content. | $image | |
Index | The index of the image for multi image files. | 1 | Optional |
Result
Returns the x and y resolution values as text separated by newline character.
Description
The function retrieves the horizontal and vertical resolution of an image file.The image resolution is a user defined value that can be stored in certain image formats such as Bitmap or TIFF.
The function returns zero values if the image format does not support a resolution record or if no values are stored in the image file, the image resolution is then 72 DPI.
See also ReadImageResolution function in DynaPDF manual.
See also
Release notes
- Version 15.2
- Added DynaPDF.ReadImageFormatFile and DynaPDF.ReadImageResolutionFile function to inspect images files on disk.
- Version 14.5
- Improved DynaPDF.GeneratePreview, DynaPDF.ReadImageResolution, DynaPDF.ReadImageFormat, DynaPDF.InsertImage, DynaPDF.AttachFileContainer, DynaPDF.AddOutputIntentEx, DynaPDF.CreateICCBasedColorSpaceContainer and DynaPDF.OpenPDFFromContainer to return proper error if container is empty.
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014
DynaPDF.ReadImageFormatFile - DynaPDF.ReadImageResolutionFile
