Skip to main content
dawidowsky
Participant
January 25, 2017
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?

  • January 25, 2017
  • 1 reply
  • 440 views

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 has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 25, 2017

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.

dawidowsky
Participant
January 25, 2017

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 ...

try67
Community Expert
Community Expert
January 25, 2017

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.