Ps/Eps To pdf Conversion issue


#1

Dear Team,
I have issue in Ps and Eps File Format to convert Pdf.

Issue 1:
PS to PDF

Code
FileInputStream psStream = new FileInputStream(dataDir);
dataDir = fileNameWithOutExt + “_Original.pdf”;
FileOutputStream pdfStream = new FileOutputStream(dataDir);
PsDocument document = new PsDocument(psStream);
PdfSaveOptions options = new PdfSaveOptions();
com.aspose.eps.device.PdfDevice device = new com.aspose.eps.device.PdfDevice(pdfStream);
try {
document.save(device, options);
} finally {
psStream.close();
pdfStream.close();
}

Aspose Lib
Page 19.9
pdf 19.9

Java Version
JDK 1.8

Sample
PS.zip (59.5 KB)
EPS.zip (5.5 MB)


#2

@rjnick

Could you kindly share the output PDF documents which were generated at your end. We will further proceed to assist you accordingly.


#3

Fig5_Original.zip (168 Bytes)


#4

@rjnick

We tested the scenario in our environment while using Aspose.Page for Java 19.9 and noticed NullPointerException Exception being thrown by the API. i.e.

Exception in thread "main" java.lang.NullPointerException
    at com.aspose.page.internal.l01.I331.ll(Unknown Source)
    at com.aspose.page.internal.l01.I347.lif(Unknown Source)
    at com.aspose.page.internal.l01.I677.lif(Unknown Source)
    at com.aspose.page.internal.l01.I67l.lif(Unknown Source)
    at com.aspose.page.internal.l01.I554.lI(Unknown Source)
    at com.aspose.page.internal.l01.I61I.lif(Unknown Source)
    at com.aspose.page.internal.l01.I61I.lI(Unknown Source)
    at com.aspose.page.internal.l01.I61I.l0l(Unknown Source)
    at com.aspose.eps.PsDocument.lI(Unknown Source)
    at com.aspose.eps.PsDocument.lif(Unknown Source)
    at com.aspose.eps.PsDocument.save(Unknown Source)

Hence, we have logged following issues in our issue tracking system for your files gr11.eps, gr12.eps, gr13.eps and gr14.eps, Fig5.ps and Fig6.ps respectively:

  • PAGEJAVA-62
  • PAGEJAVA-63
  • PAGEJAVA-64
  • PAGEJAVA-65
  • PAGEJAVA-66
  • PAGEJAVA-67

We will further look into details of the issues and keep you posted with the status of their correction. Please be patient and spare us little time.

We are sorry for the inconvenience.


#5

Dear @asad.ali,
Thankyou for your quick response, and waiting for update.