Home > Software design >  How can I extracting the last four pages from 1000 pdfs in batch?
How can I extracting the last four pages from 1000 pdfs in batch?

Time:02-05

I have around 1000 pdfs. I need to extract the last 4 pages of each document and then save each file. What is the easiest way to do this?

I don't have access to Adobe Pro and the number of documents will require automation.

CodePudding user response:

Use you favourite shell or scripting language to call:

cpdf in.pdf ~4-end -o out.pdf

You may need to check that there are at least four pages in the file as well.

CodePudding user response:

I cannot comment yet, so just don't vote on this one but please do not ask for generating code for you. This is a question and answer site. However I wouldn't recommend to use batch for this, if you have enough access to the computer, install a better programming language compiler, batch is just cmd as a file.

  • Related