Convert eps to pdf

Contents
[ ]

Using Aspose.Imaging we can convert eps file to Pdf.

The following code snippet shows you how to convert Eps to Pdf.

try (EpsImage image = (EpsImage)Image.load("Sample.eps"))
{
PdfOptions options = new PdfOptions();
PdfCoreOptions coreOptions = new PdfCoreOptions();
coreOptions.setPdfCompliance(PdfComplianceVersion.PdfA1b); // Set required PDF compliance
options.setPdfCoreOptions(coreOptions);
image.setPreviewToExport(EpsPreviewFormat.PostScriptRendering);
image.save(dataDir + "Sample.pdf", options);
}