PostScript to Image Converter

How to convert PS to vector image by command line?

When you need to convert Postscript to vector image TIFF, JPG, GIF, PNG, BMP, EMF, WMF, PCX, TGA and so on by command line, the following article will be helpful for you. VeryDOC Postscript to Image Converter has such function. And by this software, you can also render text, line, arc, ellipse, Bezier, color, image, form and any other elements from PS and EPS files to image formats quickly.  Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Download Postscript to Image Converter

  • As this is command line version software, when downloading finishes, there will be a zip file. Please extract it to some folder then you can check its elements and call it from MS Dos Windows.
  • There are only developer version and server version available. If you are laptop or computer user, please choose the server version as it can also work under computer system.

Step 2. Convert Postscript to vector by command line.

  • When you use this software, please refer to the usage and examples.
  • Here is the usage for your reference: ps2img [options] <-i PS File> [-o Output]
  • When converting Postscript to vector image, please refer to the following command line templates.
    ps2img -i C:\input.ps -o C:\output.tif
    By this command line, we can convert Postscript to vector tiff file.
    ps2img -i C:\input.eps -o C:\output.gif
    This software also can help you convert EPS file to vector image file.
    ps2img -m -i C:\input.ps -o C:\output.bmp
    By this command line, we can convert Postscript to vector BMP file.
    ps2img -c lzw -i C:\input.ps -o C:\output.tif
    By this command line, we convert Postscript to vector tiff and compress tiff file using LZW arithmetic.
    ps2img -q 80 -i C:\input.ps -o C:\output.jpg
    This command line template can help you convert Postscript to vector Jpg and set quality in created image files.
    ps2img -b 4 -i C:\input.ps -o C:\output.emf
    ps2img -i C:\input.ps -o C:\output.tif -b 1 -c ClassF -r 204x98 –m
    By this command line, we can convert Postscript to vector tiff file and set bit count as 1, compress TIFF into Fax compatible ClassF 204x98 format.
    ps2img -f 1 -l 9 C:\input.ps -o C:\output.wmf
    When converting Postscript to vector image, this software also allows you to choose conversion page range.
    ps2img -i C:\*.ps -o C:\*.pcx
    By this command line, we can convert Postscript to vector using wild character in batch.

Now let us check related parameters:

-r [resolution]      : Set resolution in generated image files
    -r 300           : Set horizontal and vertical resolution to 300 DPI
    -r 200x300       : Set horizontal and vertical resolution to 200x300 DPI
    -r 204x98        : Set horizontal and vertical resolution to 204x98 DPI
-f [first Page]      : First page to convert
-l [last Page]       : Last page to convert
-c [compress]        : Set compression method in generated image
-q [quality]         : Set quality in created image files(for jpeg image only)
-t                   : Enable transparent background
-b [bit count]       : Set bit count in generated image files

By this software, you can convert Postscript to some of vector image files. During the using, if you have any question, please contact us as soon as possible.

Raster to Text OCR Command Line

How to convert multi-page PDF to text and insert page break symbol?

     In this article, I will show you how to convert multi-page PDF to text and insert page break symbol by command line operation. The software I will use is VeryDOC Raster to Text OCR Converter Command Line, by which you can recognize many kinds of languages in PDF to text. Please check more information on homepage, in the following part, I will show you how to use this software.

Step 1. Download Raster to Text OCR Converter Command Line 

  • Even if we name this software as Raster to text converter, but it supports many version files as input like scanned PDF, text based PDF, TIFF, JPG, PNG, BMP, GIF, PCX, TGA and others. So this software can help you convert all version PDF file to plain text and insert page break symbol.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can call the executable file in MS Dos Windows.

Step 2.  Convert multi-page PDF to text and insert page break symbol.

  • When you use this software, please obey rules of this software and follow examples templates.
  • Here is the usage for your reference:  pdf2txtocr.exe [options] <PDF-file> <Text-file>
  • When convert text based PDF to text and insert page break, please refer to the following command line templates.
  • pdf2txtocr.exe C:\in.pdf C:\out.txt
    By this simply command line, we can convert PDF to text and insert page break automatically.
    pdf2txtocr.exe -firstpage 1 -lastpage 1 C:\in.pdf C:\out.txt
    By this command line, we can convert PDF to text and and choose conversion page range.
    pdf2txtocr.exe -ownerpwd 123 -userpwd 456 C:\in.pdf C:\out.txt
    By this command line, we can convert password protected PDF file to text and insert page break.
    pdf2txtocr.exe -layout C:\in.pdf C:\out.txt
    By this command line, we can convert PDF to text and maintain original layout. 
    Please do not be surprised for there is no parameter about page break used in above command line as this software will convert PDF to text and insert page break automatically. When you do not need to insert page break, please add this parameter
    -noc                : don't insert page breaks 0x0C between pages in text file. 
    The above command line only can be used to convert text based PDF to text and insert page break.

  • When converting image based PDF to text and insert page break, please refer to the following command line templates.
  • pdf2txtocr.exe -ocr -lang eng -ocrmode 0 C:\in.pdf C:\out.txt
    pdf2txtocr.exe -ocr -lang deu -ocrmode 1 C:\in.pdf C:\out.pdf
    You need to add paramer –OCR to launch OCR function then you can run the conversion successfully.

There are more examples and parameters in readme.txt, please check more detail information there. I can not list all of them here. During the using, if you have any question, please contact us as soon as possible.

Raster to Text OCR Command Line

How to convert scanned PDF to text and keep original layout?

For extracting content from scanned PDF file, sometime we need to convert scanned PDF to text. And in order to find corresponding words in output text file. we also hope to convert scanned PDF to text and keep original  layout.  VeryDOC Raster to Text OCR Converter Command Line has such function, by this software, you can also convert encrypted PDF document to Text with user password or owner password. For more information, please check software on homepage, in the following part, I will show you how to use this software.

Step 1. Download Raster to Text OCR Converter Command Line

  • There are two versions of this software on the website: Server License and Developer License. Under one Server License, you can use the corresponding SOFTWARE on exactly one server computer that offers service to clients. If the SOFTWARE contains source codes, you have the right to modify and reuse the codes under the Server License. Under one Developer License, you can integrate the corresponding SOFTWARE into your developed software and redistribute it with royalty-free. If the SOFTWARE contains source codes, you have the right to modify and reuse the codes under the Developer License.
  • When downloading finishes, there will be a zip file. Please  extract it to some folder then you can find the executable file and then call it from MS Dos Windows.

Step 2. Convert scanned PDF to text and keep original layout.

  • When you use this software, please refer to the usage and examples.
  • Here is the usage for your reference:   pdf2txtocr.exe [options] <PDF-file> <Text-file>
  • When converting scanned PDF to text, please refer to the following command line templates.
    pdf2txtocr.exe -ocr -lang eng -layout C:\in.pdf C:\out.txt
    By this command line, we can convert English scanned PDF file to text and keep original layout and formats. 
    pdf2txtocr.exe -ocr -bitcount 1 C:\in.pdf C:\out.txt
    By this command line, we can convert scanned PDF to text and specify output bit count.
    pdf2txtocr.exe -ocr -bitcount 8 C:\in.pdf C:\out.txt
    pdf2txtocr.exe -ocr -bitcount 24 C:\in.pdf C:\out.txt
    These two command line templates are same with the above one.
    pdf2txtocr.exe -ocr -lang deu C:\in.pdf C:\out.txt
    By this command line, we can convert Germany scanned PDF to text.
    pdf2txtocr.exe -text "PageText %PageNumber% of %PageCount%" C:\in.pdf C:\out.txt
    By this command line, we can convert scanned PDF to text and add page number on output text file.

Now let us check related parameters.
-layout : maintain original physical layout
-bitcount <int> : set color depth when render PDF page to image data, it can be set 1, 8, 24, default is 8bit
-text <string> : add additional text at end of each text page, this parameter supports the following variables:
    %PageNumber%: current page number
    %PageCount% : total page count of PDF file
-ocr                : enable OCR function for scanned PDF file
  -lang <string>      : choose the language for OCR engine
  -ocrmode <int>      : set OCR mode
    -ocrmode 0: output to text file
    -ocrmode 1: OCR PDF pages and insert new text layer under original PDF pages
    -ocrmode 2: output to plain text based PDF file
    -ocrmode 3: output to OCRed PDF file (BW) with hidden text layer
    -ocrmode 4: output to OCRed PDF file (Color) with hidden text layer

By those examples and parameters, you can convert scanned PDF to text easily. During the using, if you have any question, please contact us as soon as possible.

Raster to Text OCR Command Line

How to convert scanned PDF to searchable PDF?

    There is a kind of PDF file which is created by sending Office files, images, etc. to an Acrobat like PDF printer and those created by scanning physical paper like pages of a book, legal documents, etc. Normally speaking, those kinds of PDF file can not be edited let alone extract text from it. This feature will cause some using problem when you need to reuse the content in scanned PDF. In this article, I will show you how to convert scanned PDF to searchable PDF.

  I use software VeryDOC Raster to Text OCR Converter Command Line, which can also help you convert PDF to plain Text document and save the document as TXT format which can be edited freely. Please check more information on homepage, in the following part, I will show you how to make the conversion from scanned PDF to searchable PDF. The so called searchable PDF, is a kind of text based PDF file, which allows you to do copy and paste easily.

Step 1. Download Raster to Text OCR Converter Command Line

  • As its name shows, this is one suit of command line version software. When downloading finishes, there will be a zip file. You need to extract it to some folder then you can call the executable file in MS Dos Windows.
  • And this is Windows version software, it supports all the Window system both of 32-bit and 64-bit.

Step 2. Convert scanned PDF to searchable PDF

  • Here is the usage for your reference: pdf2txtocr.exe [options] <PDF-file> <Text-file>
  • When converting scanned PDF to searchable PDF, please refer to the following command line templates.
    pdf2txtocr.exe -ocr -lang deu -ocrmode 1 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang eng -ocrmode 2 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang eng -ocrmode 3 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang eng -ocrmode 2 -outboxfile C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang fra -ocrmode 1 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang ita -ocrmode 1 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang nld -ocrmode 1 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -ocr -lang spa -ocrmode 1 C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -bitcount 24 -ocrmode 4 -ocr C:\in.pdf C:\out.pdf
    pdf2txtocr.exe -bitcount 8 -ocrmode 4 -ocr C:\in.pdf C:\out.pd
    Now let us check related parameters.
  • -ocr                : enable OCR function for scanned PDF file
    -lang <string>      : choose the language for OCR engine
    -ocrmode <int>      : set OCR mode
      -ocrmode 0: output to text file
      -ocrmode 1: OCR PDF pages and insert new text layer under original PDF pages
      -ocrmode 2: output to plain text based PDF file
      -ocrmode 3: output to OCRed PDF file (BW) with hidden text layer
      -ocrmode 4: output to OCRed PDF file (Color) with hidden text layer

This software supports more than 50 OCR languages, so it can handle most of languages like English, French, German, Italian, Czech, Danish, Dutch, Norwegian, Polish, Portuguese, Spanish, Swedish, etc. scanned PDF to searchable PDF file.  And checking from the above parameters, you can know that this software supports 5 OCR modes which can help you OCR scanned PDF file more accurately.

There are two many functions of this software to be detailed, so check readme.txt file, you will find more useful information. During the using, if you have any question, please contact us as soon as possible.

DOC to Any Converter

Failed to call exeshell-x64.dll on 64bit Windows Server 2008 R2 system

Hi.

I try to call doc2any.exe from a PHP script using your exeshell class on a 64bit Windows Server 2008 R2 system. The exeshell-x64.dll was registered successfully - but I get the following error if I start the PHP script: PHP Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `exeshell.shell': Klasse nicht registriert What can I do to solve this problem?

Thanks in advance.

Regards
Customer
-------------------------------------
Actually I'm evaluating your product and downloaded the latest version from your homepage.
Build: Nov 10 2012

The registration of the exeshell-x64.dll was successfull:

Furthermore I activated the php-extension "php_com_dotnet.dll" within the IIS-Manager.

But I still get this error.

Thanks in advance.
Customer
-------------------------------------
I suggest you may call doc2any.exe from your C# or PHP or ASP.NET or other languages directly on your Windows 2008 system, you can use CreateProcess() or Process.Start() to call doc2any.exe application.

You need also set MS Office DCOM run inside an interactive user account instead of system user account, please look at following web pages for more information,

https://www.verydoc.com/doc-to-any-faq.html
https://www.verydoc.com/blog/aspnet-account-dcom-permisson-for-ms-word.html
https://www.verydoc.com/blog/microsoft-excel-application-entry-missing-in-dcomcnfg.html
https://www.verydoc.com/blog/how-to-make-iis7-play-nice-with-office-interop.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm
http://www.verypdf.com/wordpress/201201/how-to-call-doc2any-exe-or-htmltools-exe-from-a-service-20896.html

You can also set more answers in our Knowledge Base,

https://www.verydoc.com/blog/category/doc-to-any-converter

If you still can not get it work, please feel free to let us know, we will assist you continue.

VeryDOC