Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

excel文件内有图片及图形的情况下报错 #8

Open
yang-mtr001 opened this issue Jan 22, 2019 · 2 comments
Open

excel文件内有图片及图形的情况下报错 #8

yang-mtr001 opened this issue Jan 22, 2019 · 2 comments

Comments

@yang-mtr001
Copy link

yang-mtr001 commented Jan 22, 2019

Exception in thread "main" java.io.IOException: The byte array is not a recognized imageformat.
at com.itextpdf.text.Image.getInstance(Image.java:474)
at com.itextpdf.text.Image.getInstance(Image.java:375)
at itextpdf.PdfTableExcel.addImageByPOICell(PdfTableExcel.java:208)
at itextpdf.PdfTableExcel.toParseContent(PdfTableExcel.java:115)
at itextpdf.PdfTableExcel.getTable(PdfTableExcel.java:54)
at itextpdf.Excel2Pdf.toCreatePdfTable(Excel2Pdf.java:126)
at itextpdf.Excel2Pdf.convert(Excel2Pdf.java:108)
at itextpdf.TestMain.main(TestMain.java:28)

@yang-mtr001 yang-mtr001 changed the title excel文件内有图片及office、 excel文件内有图片及图形的情况下报错 Jan 22, 2019
@caryyu
Copy link
Owner

caryyu commented Apr 16, 2019

能否把相应的 xls 文件上传上来供我这边调试,谢谢!

@PingWei1314
Copy link

请问这个问题解决了吗
我现在也遇到了,用poi生成excel里有图片,文字可以转换过去,图片却不行

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

No branches or pull requests

3 participants