Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
PDF Viewer SDK - questions / comments |
Post Reply |
Author | |
abutler
Beginner Joined: 06 May 14 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 14 Oct 15 at 9:39PM |
Hi. I am reviewing the Debenu PDF Viewer SDK to see if it will work for the requirements of my current project. It looks good, but is missing a few things that I am looking for.
1. I would like the ability to select text and then highlight that. I did not see a way to get access to the text that is selected by the user. I would want the coordinates and such so that I could store this information in a database so that it would be there next time the user views the document. 2. When searching, I would like to show all results and not just the first one. I also want a list of pages and locations where the text is found. 3. Is it possible to use Debenu Quick PDF Library and Debenu PDF Viewer SDK at the same time? That is, I could implemnent the additional functionality that I require by using the Debenu Quick PDF Library. Is there an example showing how to do this? The Viewer SDK does not seem to expose the data needed to call the Quick PDF SDK. Or, do I need to modify the PDF document and refresh the page in the viewer? 4. If #1 is not possible, then I'll need to write my own mouse text selection code and possibly my own viewer. Is there an example of this somewhere or hints as to how to do text selection via the mouse? 5. Given data from DAExtractPageText, how would I highlight that text in the document? Thanks, Arthur |
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
|
ad 1.
Good feature request. I hope DevTeam can make it happen. ad 2. the same as ad 1. I think the list of selections with coords, would be great. Then using QPDFLibrary you can make highlighting in your own way. ad 3. Yes. I'm using ActiveX version so the only ones things I need to do is: 1. get Viewer Object Reference for Examlpe: $oDPVS and now 2. you can use all QPDFLibrary function/methodes like this: $oDPVS.DQPL........... $oDPVS.DQPLSetOrigin($g__eQPDF_SORIGIN_TopLeft); $oDPVS.DQPLSetMeasurementUnits($g__eQPDF_MUNITS_Milimeters) $oDPVS.DQPLNormalizePage(0) ad 4. do not know - wait for answer to 1 Question from DevTeam ad 5. this is simple just use you can use the QPDFLibrary to make it happen. HOWTO: "With QPDFLibrary you can make highlighting in your own way." 1. use my answer to Q3 2. Just get all text with coords using $oDPVS.DQPLGetPageText 3. Search only for yours text coords 4. make an SQUARE/BOX something like I make STAMP EXAMPLE HOW I MAKE A STAMP
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
abutler
Beginner Joined: 06 May 14 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thanks. I am having no luck using the QPDFLibrary functions with the viewer (v12.11) in C#. Most functions throw an exception.
axDPVActiveX1.DQPLSetOrigin(1); axDPVActiveX1.DQPLSetMeasurementUnits(0); axDPVActiveX1.DQPLSetTransparency(20); axDPVActiveX1.DQPLSetLineColor(1, 0, 0); axDPVActiveX1.DQPLSetLineWidth(2); axDPVActiveX1.DQPLDrawBox(20, 20, 50, 50, 0); axDPVActiveX1.RefreshCurrentPages(); {"Parameter not optional. (Exception from HRESULT: 0x8002000F (DISP_E_PARAMNOTOPTIONAL))"} or number of parameters do not match... Anyone have success using the DQPL functions with the viewer control?
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
|
Yes I'm using it with ActiveX version
I'm not familiar with C# but can you separate exactly which function fires event ? EDIT: I just discover the same problem. $oDPVS.DQPLSetOrigin($g__eQPDF_SORIGIN_TopLeft); $oDPVS.DQPLSetMeasurementUnits($g__eQPDF_MUNITS_Milimeters) err.number is: 0x8002000F err.windescription: Parametr nie jest opcjonalny. (Parameter is not optional) err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 232 err.retcode is: 0x00000000 and: $oDPVS.DQPLSetLineColor(1, 0, 0) DPViewer_Example.au3 (236) : ==> COM Error intercepted ! err.number is: 0x8002000E err.windescription: Nieprawidłowa liczba parametrów (Incorrect number of parameters) err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 236 err.retcode is: 0x00000000 Edited by mLipok - 28 Nov 15 at 9:21PM |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
abutler
Beginner Joined: 06 May 14 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thanks for reproducing this.
|
|
Paul
Moderator Group Joined: 25 Jun 14 Location: Slovakia Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi guys,
It seems that the binary published on 4. November 2015 has been corrupted. The Debenu team is working on the solution, the corrected version should be available in the next days. I will inform you about the updates. Paul Debenu Support
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
|
Thanks for information.
Edited by mLipok - 01 Dec 15 at 7:03PM |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
Paul
Moderator Group Joined: 25 Jun 14 Location: Slovakia Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi guys,
The above mentioned issues were corrected, the solution will be available on the website within few days. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store