#1
Posted
:
Wednesday, August 5, 2015 12:48:43 AM(UTC)
Groups: Registered
Posts: 3
Hello,
How do I reorder pages in a PDF document? (in place, preferably)
Example:
DocA.pdf has pages [1,2,3,4,5]
after reordering, the same DocA.pdf would have pages [1,4,5,2,3] (or what ever order)
PS: I'm using LEADTOOLS v19 in C# (.net 4.5.2)
Thanks.
#2
Posted
:
Wednesday, August 5, 2015 4:29:07 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 163
Was thanked: 9 time(s) in 9 post(s)
Hello Irvin,
Once you've loaded your PDF into memory as a Document object, the pages in the document are exposed through the Pages property.
https://www.leadtools.com/help/leadtools/v19/dh/dox/leadtools.documents~leadtools.documents.document~pages.html
From here, the order of the pages can be manipulated by using the Move command:
https://www.leadtools.com/help/leadtools/v19/dh/l/leadtools~leadtools.leadcollection%601~move.html
Once the pages are in the desired order, the modified document can be saved to a new file or overwrite the previous one.
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.