Skip to main content
dawidowsky
Participant
Jan 25, 2017 10:48 AM UTC
Question

How to extract 2 first and 2 lats pages from acrobt document with variable x-pages using java and than save it with the same name as the pdf +_cover?

How to extract 2 first and 2 lats  pages from acrobt document with variable x-pages using java and than save it with the same name as the pdf +_cover?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Jan 25, 2017 11:00 AM UTC

It's a bit tricky because these are two separate ranges of pages, so they can't be extract to a new file directly.

You would need to create a new document and then append those pages to it, delete the original blank page it has, and then save it.

Most of these tasks will require a script to be installed no the local machine, or the code will have to be executed from the JS Console.

Translate
dawidowsky
Participant
Jan 25, 2017 11:27 AM UTC

Thanks for answer, something different... what about deleting pages between the cover?

I will create a automatic process to make a new document(s). I'm using a lot of Quit Imposing Plus plugin but sometimes I need more ...

Translate
try67
Community Expert
Community Expert
Jan 25, 2017 2:02 PM UTC

That will work too, but you'll need to save the file under a new name, then close it, then open the original to return to the same situation as before you started. Saving the file under a specific file-path will also require a folder-level script.

Translate