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.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

DynaPDF.ListImages

Lists images in a PDF.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 6.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ListImages"; PDF { ; Flags; Page } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Flags Optional, various flags for PDF parsing. 0 Optional
Page The page number to look at.
If missing or empty, we process all pages.
123 Optional

Result

Returns list or error.

Description

Lists images in a PDF.
This is similar to DynaPDF.ExtractImages, but does not write to disk, but returns information.
For the flags, please check the pf flags in dynapdf manual.

The result is a list of values.
First value is the number of images.
Than for each image you get

The ICC Profile is often not part of the PDF as most software converts to DeviceCMYK or uses current profile set in PDF. Display width and height is calculated by the plugin. That is the size of points on the page the PDF is drawn. If Display width and pixel width are the same, the image is displayed with 72 dpi.

This function uses the parser interface in DynaPDF and needs a Pro license.

See also

Example Databases

Blog Entries

Created 19th July 2016, last changed 19th March 2019


DynaPDF.List - DynaPDF.LockLayer

Feedback: Report problem or ask question.