Ruby nadler wrote:
> Hello,
> 
> I am looking for tool that can create searchable text pdf. I have image 
> file (tif or gif) and I have an xml file or text file which contains the 
> list of all the words in the image file and each word position on the 
> image file (in pixels). Since I didn’t try itext, is there a way to do 
> it with itext? If so can you point me to the right direction?
> 
> I read about adding text or images but I couldn’t find any place about 
> hidden text under image layer.

Let me summarize: you have
- an image
- the result of an OCR operation
Now you want to add the image to a PDF (1)
and add the text on the absolute positions (2).

(1) is explained in chapter 5 of the book,
and you can find all the examples in that chapter here:
http://1t3xt.info/examples/browse/?page=toc&id=10

I've written an additional example to explain how (2) is done:
http://1t3xt.info/examples/browse/?page=example&id=390
Somebody sent me this file:
http://1t3xt.info/examples/resources/questions/txt/ocr.txt
It's the output of an OCR operation and I made a PDF that
puts the text on a page more or less in the correct position.
Give it a try.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to