Convert PostScript to PDF using C++ API

You can check the quality of Aspose.Page PS to PDF conversion and view the results via free online PostScipt to PDF Converter

Aspose.Page for C++ PS to PDF converter allows to convert PostScript (PS) file to PDF document on Windows and Linux.
It is necessary to do several steps in order to perform PS to PDF conversion:

  1. Initialize an input stream for input PS file.
  2. Initialize an output stream for output PDF document.
  3. Create an instance of PsDocument from created earlier input stream.
  4. Use PdfSaveOptions to specify AdditionalFontsFolder and SuppressError boolean value.
  5. Create an instance of PdfDevice from created earlier output stream.
  6. Save PostScript document as PDF with PDF save options.
  7. If SuppressErrors value was true, as it is by default, It is possible to see what errors were thrown during conversion of PS to PDF and saved in Exceptions list.

Following code snippet shows how to convert PS to PDF document in C++:

                
            

For complete examples and data files, please go to https://github.com/aspose-page/Aspose.Page-for-C

See PS to PDF conversion in .Net and Java.

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

Evaluate PS to PDF conversion online on our PS to PDF Converter. You can convert several PS files to PDF at once and dowload results in a few seconds.

You can download examples and data files from GitHub.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.