4

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.

Knut Arne Vedaa
  • 15,372
  • 11
  • 48
  • 59
  • Do you want to view the document inside the worksheet or embed it, so when the user double-clicks it gets opened in a new window/the corresponding application? – kiwiwings Jul 21 '13 at 10:43
  • Until now, there's no easy way. I have found a small research for this topic. see http://stackoverflow.com/questions/22453259/poi-importing-new-fonts-to-the-poi/22453696#22453696. – rdllopes Mar 17 '14 at 12:57

1 Answers1

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.

Community
  • 1
  • 1
Reena
  • 96
  • 13