Dear Aspose Team,
we have a problem converting .doc documents to .pdf using your new feature in the Aspose.Words API.
First of all, here is the code:
Document doc = new Document(source);
// Workaround Beta 4.0.0
for (Section sect = doc.getFirstSection();
sect != null; sect = (Section)sect.getNextSibling())
{
PageSetup pageSetup = sect.getPageSetup();
pageSetup.setFirstPageTray(PaperTray.DEFAULT_BIN);
pageSetup.setOtherPagesTray(PaperTray.DEFAULT_BIN);
}
doc.saveToPdf(target);
When we’re running this code on a Windows system, everything works great. When we try to run the code using openSUSE 10.2 you’ll get a NullPointerException. We saw that the Exception must appear at doc.saveToPdf(target).
Do you have any idea why it runs with Windows but not with Linux?
On the Linux system there is installed:
java version “1.5.0_14”
Java™ 2 Runtime
Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot™
Client VM (build 1.5.0_14-b03, mixed mode,
sharing)
Best regards