Add CFPDF action=extractImage

Description

https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfpdf.html

Use the extractimage action to extract all images from the specified page number in a PDF document, as shown in the following code snippet:

<cfpdf
action = "extractimage"
source = "../myBook.pdf"
pages = "1-200"
destination = "..\mybookimages"
imageprefix = "mybook">

The images are extracted and saved in the directory that you specify in the destination attribute. You can specify a prefix for the images (imageprefix) being extracted, otherwise the system prefixes the

https://dev.lucee.org/t/cfpdf-extractimage-support/2130/2

PDFBox supports this

Activity

Show:

Zac Spitzer 8 September 2023 at 07:48

turns out pdf box returns images in reverse order for some reason, added a workaround ( HT )

https://github.com/lucee/extension-pdf/commit/92c48d732db5fb07d21aba600f34de58ded9a38e

Zac Spitzer 6 September 2023 at 09:42

also added a check (and tests) for the overwrite=false with extractThumbnail

Zac Spitzer 6 September 2023 at 08:24

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Fix versions

Affects versions

Priority

Created 8 September 2020 at 10:31
Updated 8 September 2023 at 11:14
Resolved 8 September 2023 at 11:14

Flag notifications