Skip to end of metadata
Go to start of metadata
Contents Summary
  

Convert PostScript File To PDF Document

Aspose.EPS for .NET offers Ps2PdfConverter Class, with which you can convert a PS file into PDF document. You need to call ConvertToPdf() method of the class with Ps2PdfConverterOptions as a constructor argument. You can initialize Ps2PdfConverterOptions Class with input file name, output file name and a boolean value which tells converter whether to suppress errors or not. If the value is set to true, you can print encountered error later from Exception Enumeration of PsConverterException. Following code snippet shows complete functionality to convert PS file into PDF document:

 

The generated PDF document will show "Aspose.EPS for .NET" as producer or creator of the document in properties of the PDF and it cannot be changed.

Convert PostScript File To Image

This feature is supported by version 18.12 or greater.

Aspose.EPS for .NET offers Ps2ApsConverter Class, with which you can convert a PS file into an image file. You need to call ConvertToImages() method of the class with Ps2PdfConverterOptions as a constructor argument. You can initialize Ps2PdfConverterOptions Class with the input file name and a boolean value which tells converter whether to suppress errors or not. If the value is set to true, you can print encountered error later from Exception Enumeration of PsConverterException Following code snippet shows complete functionality to convert PS file into an image file:

 
Labels
  • No labels