Hi,
I am trying to work with the
attached presentation but I’m getting a java.awt.HeadlessException: null with a
simple read and save operation using the following lines of code:
Presentation pres = new
Presentation(“LloydsFinancialResultspresentation2004.pptx”, new
LoadOptions());
final ByteArrayOutputStream
pptStream = new ByteArrayOutputStream();
pres.save(pptStream, SaveFormat.Pptx,
new SaveOptionsFactory().createPptxOptions());
I am using 16.12.0 version of
slides for java.
My environment details: Oracle
Linux 5 (Intel 64-bit)
Java version: 1.7.0_85(default)
Java SE version: 1.7.0_85
(default)
I am running into this issue when I have the following property set: <span style=“color: rgb(34, 34, 34); font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif; font-size: 12px;”>-Djava.awt.headless=true
<span style=“color: rgb(34, 34, 34); font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif; font-size: 12px;”>
Could you please look into this and provide a solution?
Thanks,
Monica