在POI XLSX文件中嵌入文档 [英] Embed document in xlsx file with POI
本文介绍了在POI XLSX文件中嵌入文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在使用Apache POI XLSX文件嵌入文档(例如PDF)?看来你可以使用 workbook.getAllEmbedds()
读取嵌入的文件,但我不能找到一种方法写一个文件时插入任何
Is there any way to embed a document (e.g. pdf) in an xlsx file using Apache POI? It seems you can read embedded documents using workbook.getAllEmbedds()
, but I can't find a way to insert any when writing a file.
推荐答案
这应该有所帮助:的类似的问题与答案用户已经创建的Apache POI的补丁,使用它可以包括arbitary文件到Excel工作表的这里补丁的链接
This should help: similar question with answer User has created a patch for Apache poi with which you can include arbitary file into excel sheet patch link here
希望这有助于。
这篇关于在POI XLSX文件中嵌入文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文