Hi,
As per following documentation, Aspose PDF should be able to convert EPS to PDF EPS to PDF Converter using C# | Aspose.PDF
However, when we tried with the sample code provided, It didn’t generate PDF and ran into error
Hi,
As per following documentation, Aspose PDF should be able to convert EPS to PDF EPS to PDF Converter using C# | Aspose.PDF
However, when we tried with the sample code provided, It didn’t generate PDF and ran into error
To convert EPS files to PDF using Aspose.PDF, you need to ensure that you are using the correct loading options. It seems that you might be encountering issues due to not specifying the appropriate options when initializing the Document object.
Here’s a sample code snippet that demonstrates how to use PsLoadOptions
while initializing the Document object:
// Specify the input EPS file
string inFile = "path/to/your/file.eps";
// Initialize the PsLoadOptions
PsLoadOptions loadOptions = new PsLoadOptions();
// Create a Document object with the EPS file and load options
Document doc = new Document(inFile, loadOptions);
// Save the document as PDF
doc.Save("path/to/output/file.pdf");
Make sure to replace "path/to/your/file.eps"
and "path/to/output/file.pdf"
with the actual paths to your EPS file and the desired output PDF file. If you continue to face issues, please provide the specific error message you are encountering for further assistance.
If you have any more questions or need additional help, feel free to ask!