Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Convert "Text image" to "Editable text"

by prabudass (Novice)
on Nov 06, 2008 at 11:01 UTC ( #721950=perlquestion: print w/replies, xml ) Need Help??
prabudass has asked for the wisdom of the Perl Monks concerning the following question:

I need to convert "text image" to "editable text" in illustrator. I can't found any option for this in illustrator.
But in acrobat using the "OCR" option we can change the text image back to editable text. We need to automate that process through programmatically.
Is it possible through perl. Kindly advice and provide me the reference.

Thanks in advance,
  • Comment on Convert "Text image" to "Editable text"

Replies are listed 'Best First'.
Re: Convert "Text image" to "Editable text"
by marto (Bishop) on Nov 06, 2008 at 12:47 UTC
Re: Convert "Text image" to "Editable text"
by leocharre (Priest) on Nov 06, 2008 at 14:52 UTC
    As mentioned above, tesseract is an open source project that works very well. PDF::OCR, PDF::OCR2 are perl interfaces to it, makes some image conversion decisions for you, etc.
    I've also tested out gnu ocrad, ran some benchmark and output tests on same material etc- it doesn't work as well.

    This stuff works well on posix, these are mostly linux type boxes.

    On windows there's something called iris - but it's pay, it costs a lot, and you have to pay extra for an sdk. So you can't really code with it out of the box.

Re: Convert "Text image" to "Editable text"
by andreas1234567 (Vicar) on Nov 06, 2008 at 12:18 UTC
    What have you tried so far?

    I tested Tesseract once with reasonable success, given that the input image text was single-column and had no graphical elements.

    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]
Re: Convert "Text image" to "Editable text"
by Anonymous Monk on Nov 06, 2008 at 12:11 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://721950]
Approved by Erez
[MidLifeXis]: Although the previous one could be a b0rken PATH, I would need to dig for that.
[thezip]: I've got to go to meetings now. If anyone has further comments regarding Spreadsheet::XLSX deployment to Strawberry Perl 5.24.1, please /msg me -- thanks!
LanX has to go ... plans to crash with a car into a group of pythonistas while screaming "LARRY IS THE GREATEST"
LanX ... darn ... where is my car?
[choroba]: Haven't you crashed into a boar recently?
[1nickt]: TCLion how is that going?
[LanX]: could someone lend me a car?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2017-03-23 17:30 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (291 votes). Check out past polls.