VeryPDF OCR to Any Converter Command Line was released recently. By this software, you can convert scanned PDF, TIFF and Image files to editable Word, Excel, CSV, HTML, TXT, Pure Text Layer PDF, Invisible Text Layer PDF, etc. formats. In this article, I will show you how to convert text based PDF file to plain text. Please note the text based PDF refer to the ones which can be copied and pasted fonts in it. By this method, you can not handle image based PDF files.
Step 1. Download OCR to Any Converter
- There are server version and developer version available on our website. By the server version, you can also use it on single computer or laptop.
Step 2. Convert text based
- When you use this software, please refer the usage and examples. And simply run the bat file then you can check the conversion effect.
- Usage: ocr2any.exe [options] <PDF-file> <Text-file>
- When you need to convert test based
ocr2any.exe C:\in.pdf C:\out.txt
By this command line, you can convert single PDF file to text.
ocr2any.exe -firstpage 1 -lastpage 1 C:\in.pdf C:\out.txt
By this command line, you can convert first page of PDF file to text. Also by this method, you convert PDF to text and specify conversion page range. By those two parameters, the conversion efficiency can be enhanced greatly.
ocr2any.exe -ownerpwd 123 -userpwd 456 C:\in.pdf C:\out.txt
By this command line template, you can convert password protested PDF to text. If you do not know the owner password, simply input one.
ocr2any.exe -layout C:\in.pdf C:\out.txt
When you need to convert PDF to text and maintain layout in original PDF file, please add this parameter.
ocr2any.exe -noc C:\in.pdf C:\out.txt
If you need to convert all pages of PDF content into one text file, please refer to this command line.
, please refer to the following command line templates.
Now let us check related parameters.
-firstpage <int>:please use this parameter to specify the first PDF page to convert
-lastpage <int>: specify the last PDF page to convert
-res <int>: when you need to set resolution, the unit is DPI (default is 300 dpi), please add this parameter.
-ownerpwd <string>: please input owner password for encrypted PDF file when do converting
-userpwd <string>: please input user password when processing encrypted PDF file
-layout: when you need to maintain original physical layout of PDF in text file, please add this parameter
Now let us check the conversion effect from the following snapshot.
We will publish more articles in our knowledge base about this software,if you are interested in this software, please pay more attention to our website. During the using, if you have any question, please contact us as soon as possible.