Extract a specific page from a PDF to save a single image


#1

Hi,

I’m wondering if there is a way to extract a certain page out of a multipage PDF and save just that page as an image. Let’s say I have a PDF with 10 pages. I only want page 5 to be saved as PNG.
How can I do that?

best,
Jan


#2

You can do this with the following workflow:

Read Folder (or files) -> Layer & Page Splitter -> Rules -> Write Images.

And for the Rules node, have a single condition of “File Name ends with page 5.pdf”.

Then you’ll get the 5th page of any PDF run through it. Also make sure the write node is set to PNG for it’s format.


#3

Thank you, that worked.


#4

@ccgus How to do the exact opposite? Extract all the pages from a PDF except the first one for example? A kind of “File Name does not end with page 1.pdf”. Thanks!


#5

You’ll need a new build of Acorn to do this (#700 http://flyingmeat.com/download/latest/#retrobatch ).

I just added support for a new “Page Number” rule in the Rules Node. You can use this rule to say “only let the first page of a PDF through”, or “all pages of an animated GIF except the first”, or even limit images 5 though 16.

The rule you’ll want is “Page Number is greater than 1”

It’ll also work with PSD, Acorn, and other multi-page image types.

It’s a good idea, thanks for bringing this up!


#6

Wow! That’s great! Thanks again for your reactivity!