A PostScript (PS) file is saved in page description language and can contain text, vector graphics, and raster images. Whereas, the Encapsulated PostScript (EPS) format is used for images or drawings. In this article, you will learn how to convert** PS/EPS files into PDF** using C#.
- C# PS/EPS to PDF Converter API
- Steps to Convert PostScript PS/EPS to PDF in C#
- PS/EPS to PDF - C# Code
C# PS/EPS to PDF Converter API
Aspose.Page for C# API is designed to work with PS and EPS files from within the .NET applications. Along with other manipulation features, the API provides a high fidelity conversion of PS/EPS to PDF. You can either download the API’s DLL or install it using NuGet.
Steps to Convert PostScript PS/EPS to PDF in C#
The following are the steps to convert a PS/EPS file to PDF using Aspose.Page for .NET.
- Load the file using the PsDocument class.
- Create an instance of PdfSaveOptions class and set PDF options if required.
- Define an instance of FileStream for output PDF file.
- Create an instance of PdfDevice class and initialize it with output PDF’s FileStream object.
- Save document as PDF using PsDocument.Save(PdfDevice, PdfSaveOptions) method.
PS/EPS to PDF - C# Code
The following code sample converts PS/EPS to PDF in C#.
Conclusion
In this article, you have learned how to convert EPS/PS files to PDF using C#. In case you want to explore more about the C# EPS/PS file manipulation API, visit the documentation.