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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.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
MBS(
"DynaPDF.ExtractImages"; /* Extracts images of a PDF. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$Path; /* The native Path to the folder ending with slash/backslash.e.g. "C:\Images\" */
$Flags; /* Optional; Optional, various flags for image extraction.e.g. 0 */
$Page) /* Optional; The page number to look at.
If missing or empty, we process all pages.e.g. 123 */
Less
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
This function checks for a license.
Created 18th August 2014, last changed 25th July 2021
DynaPDF.ExtractDocumentText
-
DynaPDF.ExtractPageRectText