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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
paleise  
#1 Posted : Thursday, September 19, 2024 9:11:51 AM(UTC)
Quote
paleise

Rank: Advanced Member

Groups: Registered
Joined: 10/13/2017(UTC)
Posts: 51
Germany
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
kdhelbig  
#2 Posted : Wednesday, April 30, 2025 7:32:28 AM(UTC)
Quote
kdhelbig

Rank: Newbie

Groups: Registered
Joined: 10/26/2016(UTC)
Posts: 3
Germany
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.
Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
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.