Hi, I have to convert a file from PDF to TeX. Everything works good on Windows when I run the application locally. On the server where the app implemented is hosted(AMAZON EC-2 LINUX), the same method doesn’t work anymore.
The code from JAVA:
Document pdfDocument = new Document(doc.getPath());
pdfDocument.save(insuranceDir + “ALLIANZ”, SaveFormat.TeX);
The ERROR:
java.lang.NullPointerException: null
at com.aspose.pdf.internal.l52v.lf.lf(Unknown Source)
at com.aspose.pdf.internal.l52v.lb.lb(Unknown Source)
at com.aspose.pdf.internal.l52v.lb.lI(Unknown Source)
at com.aspose.pdf.internal.l52v.lb.lj(Unknown Source)
at com.aspose.pdf.internal.l52v.lj.lj(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51f.lj.lI(Unknown Source)
at com.aspose.pdf.internal.l51l.lf.lI(Unknown Source)
at com.aspose.pdf.internal.l51l.lf.lI(Unknown Source)
at com.aspose.pdf.internal.l51l.lf.lI(Unknown Source)
at com.aspose.pdf.l17v.lI(Unknown Source)
at com.aspose.pdf.l17v.lI(Unknown Source)
at com.aspose.pdf.ADocument.lj(Unknown Source)
at com.aspose.pdf.ADocument.lj(Unknown Source)
at com.aspose.pdf.ADocument.lf(Unknown Source)
at com.aspose.pdf.Document.lf(Unknown Source)
at com.aspose.pdf.ADocument.lI(Unknown Source)
at com.aspose.pdf.ADocument.save(Unknown Source)
at com.aspose.pdf.Document.save(Unknown Source)
In usr/share/fonts -> I created truetype directory -> I created msttcorefonts directory -> I put all my local windows fonts there.
- I installed libgdiplus, still the same error. Suggestions?