Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

jpeg file to doc or odt conversion

by vishwamitra (Novice)
on Jul 18, 2009 at 05:58 UTC ( [id://781261]=perlquestion: print w/replies, xml ) Need Help??

vishwamitra has asked for the wisdom of the Perl Monks concerning the following question:

i have got large amount of jpeg/jpg files which are scanned pages consisting of text. i want to convert them to odt(openoffice writer files) files. Is there any module to do the conversion?I am new to this concept of conversion. Can any one help me please?

Replies are listed 'Best First'.
Re: jpeg file to doc or odt conversion
by Anonymous Monk on Jul 18, 2009 at 06:24 UTC
Re: jpeg file to doc or odt conversion
by mandog (Curate) on Jul 18, 2009 at 22:04 UTC

    Depending on what you want to do with the .jpeg files, (maybe you just want to print them?), you can quickly create an hmtl document w/ bash.

    echo "<head> </head><body>" > index.html ls *.jpeg *.jpg | xargs -i echo "<img src={} width=300>" >> index.html echo "</body>" >> index.html

    The width= attribute scales the images to something that would reasonablely to fit on a page. Omitting the height attribute means you scale w/o distortion.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://781261]
Approved by AnomalousMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found