Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is a error when use fr.opensagres.poi.xwpf.converter.pdf-gae convert word to pdf #643

Open
cntigers opened this issue Apr 7, 2024 · 3 comments

Comments

@cntigers
Copy link

cntigers commented Apr 7, 2024

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:
image

@natimercy
Copy link

natimercy commented May 6, 2024

17149817303546
Encountering the same problem,遇到同样的问题。

@cntigers
Copy link
Author

cntigers commented May 8, 2024

17149817303546 Encountering the same problem,遇到同样的问题。

我暂时的解决方案是:重写PngImage类然后注释该类中读取iccp部分的代码:
image

@cntigers
Copy link
Author

17149817303546 Encountering the same problem,遇到同样的问题。

你这个问题解决了吗;Have you solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants