View Single Post
Old 06-11-2013, 07:42 PM   #449
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Eithrial View Post
Is there option to use k2pdfopt just to ocr and autostraigthen, leaving original pdf layout untouched?
Yes. Try the following:

k2pdfopt -mode copy -ocr t -as myfile.pdf

-mode copy Sets a number of options so that k2pdfopt copies the source document size and contents.
-ocr t Turns on OCR with Tesseract
-as Turns on autostraighten

If the output resolution isn't satisfactory, you can use -dr to increase it, e.g. -dr 2 will double it. More detail on the options is on my command-line option help page.
willus is offline   Reply With Quote