Hi there,
Using the viewer SDK, i'd like to extract pages in a particular order, so if i use "2, 1" as rangetext, I'd like the resulting PDF to start with the second page of the source PDF. How can i do this? Now it looks like the page list is being sorted before extraction. The standard pdf-viewer has the same problem
Extract pages in order specified
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19876
- Joined: Mon Jan 12, 2009 8:07 am
Re: Extract pages in order specified
Hi Joost,
Simply reorder the pages to the way you want them (e.g. using some JS code), and only then continue with the extraction process.
Best,
Stefan
Simply reorder the pages to the way you want them (e.g. using some JS code), and only then continue with the extraction process.
Best,
Stefan
-
- User
- Posts: 7
- Joined: Mon Dec 05, 2011 9:16 pm
Re: Extract pages in order specified
Hmm.. Is that the only possibility? I'd rather not touch the original document.. rearranging pages might make the original document "invalid"
-
- Site Admin
- Posts: 19876
- Joined: Mon Jan 12, 2009 8:07 am
Re: Extract pages in order specified
Hi joost,
You can reorder the pages, perform the extract, and then just discard the changes to the original, or alternatively - you can extract the pages, and reorder them in the new document instead.
Best,
Stefan
You can reorder the pages, perform the extract, and then just discard the changes to the original, or alternatively - you can extract the pages, and reorder them in the new document instead.
Best,
Stefan