I am considering purchasing the PDF-XChange SDK license (I don't have experience with it) for a custom software project and would like to ensure that my specific requirements can be implemented before proceeding with the purchase. My goal is to develop an application with the following functionality:
Embedding the Editor in a Child Window:
I would like to embed the PDF-XChange Editor as a child window within my application.
Custom Window with Database Interaction:
Next to the Editor, I plan to develop a custom window within the same application. This window will display data from my database, such as text snippets.
Drag-and-Drop Interaction:
Users should be able to drag text snippets from the custom window and drop them into the PDF within the Editor.
Restriction to Application:
The Editor’s functionalities will only be accessible through my application and will not be available for general PDF editing outside of it.
Before I purchase the license, I would like confirmation that the SDK allows for this type of implementation and if there are any known limitations I should consider.
Thank you for your time and support. I look forward to your feedback.
Clarification on Embedding Editor in a Custom Application with Interaction
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Paul - PDF-XChange, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - Tracker, Ivan - Tracker Software, Stefan - PDF-XChange
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.
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.
- Vasyl - PDF-XChange
- Site Admin
- Posts: 2426
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Clarification on Embedding Editor in a Custom Application with Interaction
Hi jucass89.
Also currently our control accepts dropping real files only, not objects in memory, for example. So, at the moment, you will need to save that text snippet to the temp. file and then start the standard DnD process with that file.
OR you may use another way like:
1. Start DnD text-snippet from your window to Editor's window.
2. At the moment of the start of DnD - show the semitransparent popup window that covers the Editor's window precisely.
That will:
- highlight to the user the possible place to drop the snippet
- allow you to catch and handle the mouse-up event over that popup window to call the pdfCtr.OpenFrom(streamObjInMemory);
(see Open Document From IStream tips in code of FullDemo). The streamObjInMemory may contain the text snippet.
HTH
By default our Editor ActiveX Control prevents the dropping files on itself. But you can allow it, for example, in our FullDemo app, in the constructor of MainFrm object you may add this:Drag-and-Drop Interaction:
Users should be able to drag text snippets from the custom window and drop them into the PDF within the Editor.
Code: Select all
...
pdfCtl.Inst.Settings["Docs.CanOpenByDrop"].v = 1;
pdfCtl.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Documents);
...
OR you may use another way like:
1. Start DnD text-snippet from your window to Editor's window.
2. At the moment of the start of DnD - show the semitransparent popup window that covers the Editor's window precisely.
That will:
- highlight to the user the possible place to drop the snippet
- allow you to catch and handle the mouse-up event over that popup window to call the pdfCtr.OpenFrom(streamObjInMemory);
(see Open Document From IStream tips in code of FullDemo). The streamObjInMemory may contain the text snippet.
HTH
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Re: Clarification on Embedding Editor in a Custom Application with Interaction
Thank you for your feedback. That helps me quite a bit.
- Dimitar - PDF-XChange
- Site Admin
- Posts: 2148
- Joined: Mon Jan 15, 2018 9:01 am