https://bz.apache.org/bugzilla/show_bug.cgi?id=64876
Bug ID: 64876
Summary: Unable to convert pptx to pdf
Product: POI
Version: 4.1.2-FINAL
Hardware: PC
Status: NEW
Severity: critical
Priority: P2
Component: XSLF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When tried converting pptx to pdf we get the below error
java.lang.RuntimeException: invalid wmf file - window records are incomplete.
at
org.apache.poi.hwmf.usermodel.HwmfPicture.getBounds(HwmfPicture.java:182)
at org.apache.poi.hwmf.usermodel.HwmfPicture.draw(HwmfPicture.java:134)
at
org.apache.poi.hwmf.draw.HwmfImageRenderer.drawImage(HwmfImageRenderer.java:129)
at
org.apache.poi.sl.draw.DrawPictureShape.drawContent(DrawPictureShape.java:64)
at
org.apache.poi.sl.draw.DrawSimpleShape.draw(DrawSimpleShape.java:107)
at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:71)
at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:50)
at org.apache.poi.sl.draw.DrawSheet.draw(DrawSheet.java:50)
at org.apache.poi.sl.draw.DrawSlide.draw(DrawSlide.java:41)
at org.apache.poi.xslf.usermodel.XSLFSlide.draw(XSLFSlide.java:373)
at com.test.PPTxConverter.convertToPDFOld(PPTxConverter.java:75)
at com.test.PPTxConverter.main(PPTxConverter.java:161)
The same implementation works fine with 3.15 , 3.12 versions.
The implementation is similar to
https://github.com/yeokm1/docs-to-pdf-converter/blob/master/docs-to-pdf-converter/src/com/yeokhengmeng/docstopdfconverter/PptxToPDFConverter.java
We need to upgrade to 4.x as the older versions have few vulnerabilities.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]