EMF to PS Command Line Converter-convert EMF to PS in batch

     In this article, I will show you how to convert EMF to PS image in batch through command line. The software I use here is VeryPDF HTML Converter. The Postscript file format is a text format which contains the program code for a postscript interpreter. Postscript is a page description language designed to enable the creation and transfer of printer-ready output. In other word, converting EMF to PS can help you edit EMF information in Photoshop. In the following part, I will show you how to make it work.

Step 1. Download HTML Converter Command Line

  • For the command line version, now there is only server version available on our website. But the server version still can work under single computer or laptop.
  • When downloading finishes, there will be a zip file. Please unzip file and then find the executable file, which can be called from MS Dos Windows.
  • When you run the conversion, please refer to the usage and examples in readme.txt.

Step 2. Convert EMF to PS by command line

  • Usage:  htmltools [options] <EMF-WMF-HTML-URL-RTF-file> [<PDF-PS-Image-file>
  • When converting EMF to PS in batch, please refer to the following command line template.
    htmltools.exe C:\in.emf C:\out.ps
    By this command line, we can convert single EMF file to PS.
    htmltools.exe C:\*.emf C:\*.ps
    By this command line, we can convert EMF to PS in batch using wild character.
  • When converting EMF to PS, there are three modes specialized for Postscript, please have a check.
  • -psmode <int>             : when creating vector Postscript file, please add this parameter.
        -psmode 0: this parameter can help you create Postscript via printer driver
        -psmode 1: this parameter can help you create Postscript via local interpreter 1 (slower)
        -psmode 2: when you need to create Postscript via local interpreter 2 in a fast speed, please add this parameter. 
        default is "-psmode 2"
    Here are some examples.
    htmltools.exe -psmode 0 C:\in.emf C:\out.ps
    htmltools.exe -psmode 0 C:\in.emf C:\out.ps
    htmltools.exe -psmode 0 C:\in.emf C:\out.ps

  • When you need to compress image file, there are following methods for you to choose.
  • -imgfilter <int>          : Set compression filter which is used to compress images
       -1 : Set compression filter automatically, default
        0 : Flate compression
        1 : JPEG compression
        2 : B&W CCITT Fax G3 compression
        3 : B&W CCITT Fax G4 compression
        7 : JPEG 2000 compression
      -quality <int>            : Set quality which is used to compress images

By those above command line and parameters, we can convert EMF to PS by command line and compress it keeping high quality. Please check more related parameters in readme.txt. During the using, if you have any question, please contact us as soon as possible.

     

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in HTML Converter (htmltools) and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!