Hi team,
I am getting the below error while converting ps file format to pdf
“Exception in thread “main” java.lang.UnsupportedOperationException: com.aspose.pdf.internal.l14n.lv is not supported in this context.
at com.aspose.pdf.internal.eps.postscript.l4v.(Unknown Source)
at com.aspose.pdf.internal.eps.postscript.l1k.l0l(Unknown Source)
at com.aspose.pdf.internal.eps.postscript.l1k.execute(Unknown Source)
at com.aspose.pdf.internal.eps.postscript.l2h.checkAndExecute(Unknown Source)
at com.aspose.pdf.internal.eps.postscript.l4t.lI(Unknown Source)
at com.aspose.pdf.internal.eps.postscript.l4t.lj(Unknown Source)”
My code is as follows
public static void pstopdf()
{
com.aspose.pdf.LoadOptions options = new com.aspose.pdf.PsLoadOptions();
// Open .ps document with created load options
Document pdfDocument = new Document(“C:\temp\slick.ps”, options);
// Save document
pdfDocument.save(“C:\temp\slick.pdf”);
System.out.println(“Converted to pdf successfully”);
}
Thanks,
Aswin Radhakrishnan