Convert eps to pdf
Contents
[
Hide
]
Using Aspose.Imaging we can convert eps file to Pdf.
The following code snippet shows you how to convert Eps to Pdf.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |