Convert PS, EPS, and XPS

PS, EPS, and XPS converter API Solution for C++.

 

Whenever there is need to convert PostScript PS and Encapsulated PostScript EPS Files as well as XPS documents programatically, Java API can do it smoothly and converts multiples files. For PS and EPS, API supports Levels 1-3 PostScript operators and the most of the EPS header comments as well as transforms PostScript documents having maximum conformity with an exception of few fonts cases and API deals such fonts as Time New Roman.

Programmers can easily use it for batch processing of PostScript and XPS documents, even manipulate canvases, paths and glyphs elements and handle vector graphics shapes and text strings.

The API solution for Java here lets you convert files of such PDL formats as PS, EPS, and XPS programmatically, but you may find useful to see and try cross-platform developed on these native APIs. Here are few scenarios of conversion such as EPS to Images, EPS to PDF, PostScript to PDF, PostScript to Images, XPS to Images and XPS to PDF

Convert EPS to Images via C++.

C++ library allows converting Encapsulated PostScript (EPS) files to images on Windows and Linux platforms. The process is:

  1. Use FileStream to create the input stream for EPS file as well as to create PsDocument Class object having input stream as a parameter. For Images specific settings, use the ImageSaveOptions Class .
  2. Define the image type and size using ImageDevice .
  3. Save EPS as images with image save options to an array of arrays of bytes creating for every bytes array a new file output stream.
C++ Code for EPS to Images Conversion
 

PostScript to PDF Conversion via Java.

The process of converting PostScript to PDF is the same as of EPS to Images, except that developers will use PdfSaveOptions to define additional settings such as AdditionalFontsFolder and SuppressError value etc. Moreover, will use PdfDevice from the created output stream.

C++ Code for PostScript to PDF Conversion
 

Convert XPS to PDF via C++.

C++ XPS Processing API deals with the conversion of XPS to Images including BMP, JPG, TIFF, PNG, and more, as well as XPS to PDF conversion on Windows and Linux-based systems. The process of converting XPS to PDF is:

  1. Define the output stream as well as define the input stream for input XPS document.
  2. Pass it as parameter to XpsDocument Class Object.
  3. Specify the PDF specific save options such as TextCompression, ImageCompression and JpegQualityLevel using PdfSaveOptions .
  4. Create an instance of PdfDevice from the created earlier output stream.
  5. Finally convert XPS document as PDF with the PDF save options.
C++ Code for XPS to PDF Conversion



FAQ

1. Can I convert Postscript with this API solution?

Aspose.Page has functionality that allows you to convert PS, XPS, and EPS files to other formats online or programmatically. If you need to transform your files instantly online you may like to use Page Description Language format files Converter cross-platform application.

2. What Page description Languages are supported by the converter?

This conversion functionality supports files with .ps, .eps, and .xps extensions. Such famous PDLs as PDF and SVG are represented as separate solutions in Aspose.products

3. Is the functionality free?

The cross-platform converters are free, when for the API solution you can get a free Trial and then buy the product if needed.

 
  

Support and Learning Resources