Extract pages in order specified

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

joost
User
Posts: 7
Joined: Mon Dec 05, 2011 9:16 pm

Extract pages in order specified

Post by joost »

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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19876
Joined: Mon Jan 12, 2009 8:07 am

Re: Extract pages in order specified

Post by Stefan - PDF-XChange »

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
joost
User
Posts: 7
Joined: Mon Dec 05, 2011 9:16 pm

Re: Extract pages in order specified

Post by joost »

Hmm.. Is that the only possibility? I'd rather not touch the original document.. rearranging pages might make the original document "invalid"
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19876
Joined: Mon Jan 12, 2009 8:07 am

Re: Extract pages in order specified

Post by Stefan - PDF-XChange »

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