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!
![]() |
Creating PDF from Image + hOCR data |
Post Reply ![]() |
Author | |
Shuaib ![]() Beginner ![]() ![]() Joined: 12 Mar 13 Location: Pakistan Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 12 Mar 13 at 9:32AM |
Hi,
I am using tesseract to ocr images, now I would like to create a pdf out of the original OCRed image, plus the hOCR output I get from ocr engine. Can anyone please guide me in the right direction on how I can use Quick PDF Library to achieve this? Google didn't turn up anything. Thanks.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
With the draw-functionalities of QP you can insert the real text without having an eye on the layout. On a new layer you can use DrawImage to insert the text with layout over all. So you can work with textextraction as well as having the nice original layout. Here's the online reference: http://www.debenu.com/docs/pdf_library_reference/FunctionGroups.php Cheers and welcome here, Ingo |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello, QP.SetTextMode(3); will allow you to draw invisible text. The text will still be searchable. You will also need to use AddImageFromFile and DrawImage to create the visible part of the page. This link shows how import and draw an image correctly - http://www.quickpdf.org/forum/creating-a-multi-page-pdf-from-a-multipage-tiff_topic2125.html You will need to use Google to better understand the hOCR data correctly. 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