Convert PostScript files using .NET

Contents
[ Hide Show ]

This article explains how to convert PS files using C# on the example of PS to PDF Conversion.

Aspose.Page lets you convert PS files using C# in BMP, JPG, TIFF, PNG, and PDF formats.

C# PS to PDF Conversion

You can check the quality of Aspose.Page PS to PDF conversion and view the results via free online PostScipt to PDF Converter, PS Viewer and other other apps, to manipulate PS files

Aspose.Page for .NET PS to PDF converter allows to convert PostScript (PS) file with of any language supported by .NET platform: C#, VB, J#. All the conversions are performed in a similar way to the one shown in the example below.

Steps to perform PS to PDF conversion:

  1. Create an instance of PsDocument from PS file.
  2. Use PdfSaveOptions(or ImageSaveOptions if you convert to an image format) to specify AdditionalFontsFolder and SuppressError boolean values.
  3. Create an instance of PdfDevice(or ImageDevice if you convert to an image format) from the created earlier output stream.
  4. Save PostScript document as PDF with PDF save options.
  5. If the SuppressErrors value was true, as it is by default, It is possible to see what errors were thrown during the conversion of PS to PDF and saved in the Exceptions list.
                
            

See PS to PDF conversion in Java and C++.

Let’s consider PdfSaveOptions. Using this class we can assign different conversion parameters while converting PS to PDF.

Also check PS conversion functionality online on our PS Converter. There you can convert several PS files at once and dowload results in a few seconds.

You can download examples and data files from GitHub.

Have any questions about Aspose.Page?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.