Convert EPS files using .NET API

Contents
[ Hide Show ]

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

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

C# EPS to BMP Conversion

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

Aspose.Page for .NET EPS converter allows to convert Encapsulated PostScript (EPS) 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 EPS to BMP conversion:

  1. Create an instance of PsDocument from EPS file.
  2. Use ImageSaveOptions(or PdfSaveOptions if you convert to PDF) to specify AdditionalFontsFolder and SuppressError boolean values.
  3. Save the PostScript document as an image with image save options to an array of arrays of bytes. One array of bytes for one page of input document.
  4. Save resulting 2-dimensional arrays of bytes to BMP files creating for every byte array a new file output stream.
  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 EPS to BMP.

Following C# code snippet shows how to convert EPS to BMP files in C#. All the other EPS conversions are fulfilled similarly.

                
            

See EPS to BMP conversion in Java and C++.

Let’s consider ImageSaveOptions. Using this class we can assign different conversion parameters while converting EPS to BMP.

Evaluate EPS conversion online on our EPS online Converter. You can convert several EPS files at once and download 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.