Drag-and-Drop from Thumbnailview to Java Application

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
martin3
User
Posts: 20
Joined: Tue Oct 11, 2011 6:08 am

Drag-and-Drop from Thumbnailview to Java Application

Post by martin3 »

Hello,

I am searching for a possibility to drag pages out of the thumbnails view onto a single Java (Eclipse SWT) widget. Both the PDF XChange Editor as well as this wigdet reside in the same application. As far as I found out, I get a UIX:PrivateCbFmt structure that I might be able to access. But I have not found any documentation about that structure. Could you give me more information about that structure?

The intention we have is to give our users the ability to classify parts of a document by dragging contents onto a classification structure (e.g. with nodes like summary, description, appendix) etc. We do not really need the page content. It is enough to get the list of page numbers that are actually dragged.

Thanks
Martin
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Drag-and-Drop from Thumbnailview to Java Application

Post by Sasha - Tracker Dev Team »

Hello Martin,

You won't be able to read from that one, as it's an private data. Though we are also filling the

Code: Select all

::RegisterClipboardFormat(CFSTR_FILECONTENTS);
::RegisterClipboardFormat(CFSTR_FILEDESCRIPTOR);
clipboard format that allows us to drop into the Explorer. You can use that format to read data from it - we are constructing a new document with selected pages.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
martin3
User
Posts: 20
Joined: Tue Oct 11, 2011 6:08 am

Re: Drag-and-Drop from Thumbnailview to Java Application

Post by martin3 »

Hello Alex,

so I get a new document, but I am not able to get the numbers of the selected pages, right? We would need the page numbers.

You said that this is a private structure, but what content (the SWT Clipboard methods return a 24byte byte-array) are pushed into the clipboard?

Currently I have to glue how to access the two formats you mentioned. All I can see is PrivateCbFmt and FileGroupDescriptorW.

Martin
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Drag-and-Drop from Thumbnailview to Java Application

Post by Sasha - Tracker Dev Team »

Hello Martin,

It's the FileGroupDescriptorW - the standard for the windows file Drag and Drop.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply