Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, August 5, 2015 12:48:43 AM(UTC)

Irving  
Irving

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, August 5, 2015 4:29:07 AM(UTC)

Nick  
Nick

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

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.140 seconds.