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!
Text selection with mouse |
Post Reply |
Author | |
ginidat
Beginner Joined: 14 Jun 13 Location: Hanover, German Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 10 Sep 13 at 12:55PM |
hello!
I've looked through the whole forum - maybe I've missed it, but: how can I display a PDF and the user is able to select text with pressed mouse button like allmost any reader (acrobat, pdf exchange viewer, ...) can? I stuck to find the right function of the lib. renderPage delivers only a bitmap with rendered text without any information where the text is located; ExtractPageTextBlocks delivers only the text without any "visual" context. Do you have any hint? That would be really great! Thank you! |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Gini!
You can get textcontent from a determined section of a page by doing the exraction with position data and then selecting the pixel-coordinates you want. The combination with mouse-activities isn't a built-in-functionality. The comparison with acrobat and co isn't fair - on one side there's an acrobat-installation with more then 100 mb and on the other side there's the small quickpdf-lib ;-) The solution should be anywhere by drawing onto canvas and then dealing with mousemove... mouseclick... Cheers, Ingo |
|
Cheers,
Ingo |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
ginidat,
Debenu Quick PDF Library doesn't not have any functions designed to interact with the GUI / Mouse. It is possible to create such an editor with QPL but it does take a little bit of work. Andrew.
|
|
ginidat
Beginner Joined: 14 Jun 13 Location: Hanover, German Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Hello and Thank you for your replies!
My mistake: I did not really believe that there is a build in function! And: I don't want to compare with full featured pdf reader/viewer! I ambition was to get a hint for a "how to". Your approach, Ingo is the thing! Thank you very much! Cheers, Gini |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
ginidat,
The two functions you have mentioned would provide the basics. What language are you using ? Here are some links to give you some low levels hints on how to do what you need. You should find something relevant here in these search results. Andrew. |
|
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