0

I have a pdf document with an even number of pages, say 2n, and I would like to split it into n documents, say pages1_2.pdf, pages3_4.pdf, ....., pages2n-1_2n.pdf, each of which consists of 2 successive pages. More precisely, for any i in the interval {1..2n}, the i-th file should consist of page 2i-1 and page 2i of the original document.

pdftk does not seem to have a dedicated function but I think that with a for loop this could be achieved.

Could you please help me in writing the right script? Thank you in advance

2

1 Answer 1

1

There is an app called PDFsam. SAM stands for split and merge. There is a free Basic version of this app and you can set the pages to keep together. You can split every n pages. It should do what you want without coding.

3
  • Thank you, PDFsam does the job! Nov 23, 2020 at 16:14
  • good!! if you don't mind can you click on the checkmark in front of my answer. that signifies you accepted my answer!
    – Natsfan
    Nov 23, 2020 at 16:26
  • Thank you. Glad I could help.
    – Natsfan
    Nov 23, 2020 at 16:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .