ByteArrayOutputStream pdfStream = new ByteArrayOutputStream();
PsDocument document = new PsDocument(officeStream);
boolean suppressErrors = false;
PdfSaveOptions options = new PdfSaveOptions(suppressErrors);
document.saveAsPdf(pdfStream, options);
with bigger postscript files, in some cases we get the following exception:
Caused by: java.lang.NullPointerException: Cannot invoke "com.aspose.page.internal.l1l.I561.lif(String)" because "<parameter3>" is null
at com.aspose.page.internal.l1l.I377.lif(Unknown Source)
at com.aspose.page.internal.l1l.I237.lif(Unknown Source)
at com.aspose.page.internal.l1l.I607.lIF(Unknown Source)
at com.aspose.page.internal.l1l.I667.ll(Unknown Source)
at com.aspose.page.internal.l1l.I667.ll(Unknown Source)
at com.aspose.page.internal.l1l.I667.lI(Unknown Source)
at com.aspose.eps.PsDocument.ll(Unknown Source)
at com.aspose.eps.PsDocument.lif(Unknown Source)
at com.aspose.eps.PsDocument.lif(Unknown Source)
at com.aspose.eps.PsDocument.save(Unknown Source)
at com.aspose.eps.PsDocument.saveAsPdf(Unknown Source)
I currently to not have a PS file that I can share with you.
If we convert the files sequential, we have no issue. If we convert the same PS files in parallel, we have the issue. We have testes it with the following code snipped:
@stud0r
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PAGEJAVA-344
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.