Rank: Advanced Member
Groups: Registered
Joined: 10/13/2017(UTC) Posts: 51  Location: Freiburg Thanks: 3 times
|
Hi, showing a pdf document with win PdfViewer. Is it possible to change page index with dragdrop? Drag page three and drop it as page 1.
Thanks for your time.
Regards Peter
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/26/2016(UTC) Posts: 3  Location: dresden Thanks: 1 times
|
I had the same request and found the following solution: Loading the pdf in PdfViewer a extracted each page as a single file and stored it in a temporaryy folder (I think a memory stream could olso be used). the files ar stored in a dictionary with page number as key and filename as value. Thencapturing the mouse position(starting in mouse move event), get the page number and searched for the single pages file name. In the mouse up event I created a new pdf file )merging all single page files with the new order in a 'result pdf' and loaded this new created 'result pdf' in the PdfViewer. Because the files are stored an undo and redo functionality is easy to implement. Hope that idea helps. Regards Klaus.
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close