Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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.
If you have an open page, we close it automatically for you before doing the import.
See also
- DynaPDF.ExchangePages
- DynaPDF.ExtractPageText
- DynaPDF.GetImage
- DynaPDF.GetImageCount
- DynaPDF.Initialize
- DynaPDF.ListImages
- DynaPDF.New
Release notes
- Version 11.4
- Deprecated DynaPDF.ExtractImages and DynaPDF.ListImages in favor of DynaPDF.GetImage function.
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 25th September 2024