I am getting following Exception when I ran in Linux server,
java.awt.HeadlessException<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:261)
at com.aspose.pdf.internal.p13.z9.m1(Unknown Source)
at com.aspose.pdf.internal.p13.z47.(Unknown Source)
at com.aspose.pdf.internal.p212.z15.m1(Unknown Source)
at com.aspose.pdf.internal.p212.z15.m1(Unknown Source)
at com.aspose.pdf.internal.p216.z1.m1(Unknown Source)
at com.aspose.pdf.z72.m1(Unknown Source)
at com.aspose.pdf.ADocument.m1(Unknown Source)
at com.aspose.pdf.ADocument.(Unknown Source)
at com.aspose.pdf.Document.(Unknown Source)
)
I am trying to convert html to pdf via setting HtmlOptions.
Its work in Windows, but It fails in Linux enviornment.
I even tried to set the page width and height, and also made -Djava.awt.headless to true. also Set the enviornment properties for the same, and it didnt work. Its giving same exception again.
I am using Latest Aspose PDF 9.7.0 - JDK 1.6 jar
I tried to load the Sample HTML file but its not allowing to load in this forum. Can you please help me over this.
Thanks,
Jagat