问题
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.
来源:https://stackoverflow.com/questions/10280687/embed-document-in-xlsx-file-with-poi