Print Page | Close Window

Creation of a searchable PDF

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2912
Printed Date: 13 Jun 25 at 12:55PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Creation of a searchable PDF
Posted By: dsch
Subject: Creation of a searchable PDF
Date Posted: 04 Jun 14 at 11:45AM
Hello all,

I try to create a searchable PDF with one visible layer (a tif image) and one hidden layer (the words, which I found using an OCR). Everthing's fine so far but one problem persists:

I have an image, which e.g. contains one sentence written in "Courier New". Using the OCR, I receive the characters, the words and their boundaries but not the font type and it's size.

Now, when painting the words on the hidden (text-)layer, using "QP.DrawRotatedText" in e.g. "Helvetica" font (remember, I don't know that the image text is written in "Courier New"), the word boundaries on this layer will not be the same as the ones on the imagelayer. That's because "Courier New" is a wider font than "Helvetica" is. This problem comes up, when one is selecting some text in a PDF-viewer.

Is there any solution for this problem?

Thanks for help!

Regards,

Dirk



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk