Open cntigers opened 2 months ago
there is a error when use fr.opensagres.poi.xwpf.converter.pdf-gae convert word to pdf; the program code is :
try (ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayInputStream in = new ByteArrayInputStream(FileUtil.readBytes(new File("C:1.docx")))){ XWPFDocument xwpfDocument = new XWPFDocument(in); PdfOptions pdfOptions = PdfOptions.create(); PdfConverter.getInstance().convert(xwpfDocument,out,pdfOptions); FileUtil.writeBytes(out.toByteArray(),"c://1/pdf"); }catch (Exception e){ e.printStackTrace(); }
the error is:
Encountering the same problem,遇到同样的问题。
我暂时的解决方案是:重写PngImage类然后注释该类中读取iccp部分的代码:
there is a error when use fr.opensagres.poi.xwpf.converter.pdf-gae convert word to pdf; the program code is :
the error is:![image](https://github.com/opensagres/xdocreport/assets/35484811/dbf5cae4-800a-4fdd-8937-483b1985c149)