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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

DynaPDF.ExtractImages

Extracts images of a PDF.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes

Deprecated

This function was deprecated. Use DynaPDF.GetImage instead.

MBS( "DynaPDF.ExtractImages"; PDF; Path { ; Flags; Page } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Path The native Path to the folder ending with slash/backslash. "C:\Images\"
Flags Optional, various flags for image extraction. 0 Optional
Page The page number to look at.
If missing or empty, we process all pages.
123 Optional

Result

Returns number of imported files or error.

Description

Extracts images of a PDF.
Please import first a PDF file (or selected pages)
For the flags, please check the pf flags in dynapdf manual.
e.g. pass 34 (pfConvImagesToRGB + pfDecomprAllImages) convert all images to RGB.
Filenames are 4 digit number counting up the images with jpg, jp2 or tif extensions.

This function uses the parser interface in DynaPDF and needs a Pro license.
See also DynaPDF.GetImage function to walk over image list and get each picture.

Deprecated in favor of DynaPDF.GetImage and DynaPDF.GetImageCount.

See also

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 25th July 2021


DynaPDF.ExtractDocumentText - DynaPDF.ExtractPageRectText

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat