Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
hOCR to PDF converter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Florian Hackenberger  
View profile  
 More options Dec 16 2007, 5:58 pm
From: Florian Hackenberger <florian.hackenber...@gmail.com>
Date: Sun, 16 Dec 2007 14:58:32 -0800 (PST)
Local: Sun, Dec 16 2007 5:58 pm
Subject: hOCR to PDF converter
Hi!

I've hacked up a VERY basic hOCR to PDF converter in Java using iText
and jericho if anyone is interested. It reads all tags with bbox
properties and places the contained text into a box on a layer. The
original image is read from the ocr_page tag and added above the text.
The current shortcomings (to be solved within the next few weeks) are:
 * Does not handle multiple pages
 * Scaling the fonts to match the bounding boxes is not implemented
 * Only uses tags with of the ocr_line class having the bbox property
(to be solved later)

Please tell me if you like it and whether I should package it
properly. Please bear in mind that the file was hacked up in about 5
hours, so don't expect well structured code. The result is sort of a
proof of concept. Patches are welcome.

The java file can be found here (it needs the jericho and iText2
libraries in order to compile):
http://www.acoveo.com/acoveo/files/HocrToPdf.java

Cheers,
            Florian Hackenberger

--
DI Florian Hackenberger
flor...@hackenberger.at


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Kofler  
View profile  
 More options Dec 17 2007, 8:53 am
From: Christian Kofler <christian.kof...@googlemail.com>
Date: Mon, 17 Dec 2007 05:53:14 -0800 (PST)
Local: Mon, Dec 17 2007 8:53 am
Subject: Re: hOCR to PDF converter
Hi Florian,

thanks for your contribution!

It's a nice idea and can be really useful.
We would be happy to see future versions with
the features you just mentioned!

Cheers,

Christian Kofler

On 16 Dez., 23:58, Florian Hackenberger


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »