ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDF Drag & Drop with ImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mdgodfrey

USA
52 Posts

Posted - Apr 30 2024 :  15:48:59  Show Profile  Reply
I can see how to move a PDF Page up or down by one page at a time but I am hoping to find a way to drag a page(s) a long distance and then drop it to the desired position.

I don't seem to be able to find a demo that does that for a PDF.
Any suggestions?

xequte

38222 Posts

Posted - Apr 30 2024 :  16:05:01  Show Profile  Reply
Hi

Is this for a PDF document loaded with PDFium? I.e. you want to maintain the PDF document as it is just reposition some pages within it?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

mdgodfrey

USA
52 Posts

Posted - Apr 30 2024 :  16:34:16  Show Profile  Reply
Yes and Yes
Go to Top of Page

xequte

38222 Posts

Posted - May 01 2024 :  23:32:46  Show Profile  Reply
Hi

We'll be releasing an update next week. It includes a new demo showing how to support drag/drop of pages to reorder them:

\Demos\PDFPageDragDrop\PDFPageDD.dpr

The important thing to remember is that TImageEnView.PDFViewer is the container of the PDF document. The TImageEnMView is only showing the content of TImageEnView.PDFViewer (i.e. via TImageEnMView.AttachedImageEnView), so when the pages are moved or deleted the TImageEnMView must command the TImageEnView.PDFViewer to move or delete them (and then the TImageEnMView will automatically refresh with the updated content).


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

aleatprog

124 Posts

Posted - May 06 2024 :  13:15:40  Show Profile  Reply
Hi Nigel,

may I remember/ask you to visually anticipate the eventual drop position by a vertical or horizontal line (while holding the mouse buttom)?

With an easier page reorganisation and text annotations, the next update release will be really nice. Congratulations! :)

Ale
Go to Top of Page

xequte

38222 Posts

Posted - May 07 2024 :  21:29:23  Show Profile  Reply
Hi Ale

Yes, a line can be shown when dragging (using ietxShowInsertPointWhileDragging of ThumbnailOptionsEx).

Though I have seen some quirks with the moving code in PDFium.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: