Embed document in xlsx file with POI

2019-05-07 11:54发布

问题:

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.

回答1:

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

Hope this helps.



标签: apache-poi