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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - Searching a PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

Searching a PDF

 Post Reply Post Reply
Author
Message
chandy21 View Drop Down
Team Player
Team Player
Avatar

Joined: 23 Sep 09
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote chandy21 Quote  Post ReplyReply Direct Link To This Post Topic: Searching a PDF
    Posted: 23 Sep 09 at 1:17PM
Hi, I was wondering if there is a mechanism to search and find text within QuickPDF? Or do I delegate that task to a search engine like Lucene?

Once I find Text, I want to be able to locate it in the document for highlight or whatever.

For example, something like the Ctrl-F in Acrobat., but I know QuickPDF is not a Visual Tool, but I would like to programatically mark-up the document.

Any suggestions?

Thanks in advance.
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 23 Sep 09 at 3:05PM
Yes, there is a way
Look at "GetPageText" function, the option 4 let you get each word with it's position inside the page, the font used and it's size
 


Edited by DELBEKE - 23 Sep 09 at 3:06PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Sep 09 at 3:10PM
Hi!

Similar to Jean-Luc's answer:
First do the textextraction and then search with Pos-syntax (or similar) to strings.
The textextraction works page by page... so if you only want the pagenumber where a search-string is located you can use textextraction with option 0,1 or 2 as well. If you need the special position on a page then you should use option 4 (word by word).

Cheers, Ingo

Back to Top
stakon View Drop Down
Team Player
Team Player


Joined: 09 Oct 09
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote stakon Quote  Post ReplyReply Direct Link To This Post Posted: 09 Oct 09 at 12:52PM
Good day,
I hope this thread is appropriate for my questions.

I have the following questions about the "searchability" and manipulation level of a PDF document by using QuickPDF.

1. Is there a way i can retrieve and manipulate objects such as TextBoxes , images, etc. created by QuickPDF or the only "searchable" thing is text? (I regard this is impossible but i just thought i'd ask)

2. If i search and find something in a PDF document can i actually delete it/change its appearance/position etc. ?

3. If i search and find the position of some text and append some more text to it and as a result i go out of the page bounds, is there an automatic way to prevent/correct this?

Thanx in advance,

Stakon.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 12 Oct 09 at 6:33AM
Hi Stakon!

To point 1...
The really searchable stuff is in textformat. This can be the real textcontent or the text from meta data like subject, author, keywords, and so on. Additionally you can solve questionsabout the layout, if there are images, what are the settings of a document, and so on.
To point 2...
You can change all things having to do with the layout.
You can add, delete and clone pages.
You can't change special parts of a page.
You can overwrite special parts but then they are only covered.
To point 3...
With QP you can change, delete special text parts instead you can add complete new pages or you can delete a page and insert a new one at the same position.

Cheers, Ingo

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store