Search code examples
javapdfpowerpointapache-poi

Apache poi slide show to pdf conversion


Is there any way to convert generated .ppt file using apache poi to .pdf file?

             OR

Any way to convert PPT file to PDF file using JAVA?


Solution

  • One option is to use POI to convert each slide into an image, then use something like Apache PDFBox to place each image onto it's own PDF page. This should work well for simpler PPT files, but the code to render slides is still a WIP. So, if you have a very complex slide, you may find some bits missing/incorrect, do send in patches if you fix any of these gaps!

    Otherwise, your other option is to use the Java bindings for OpenOffice, and have that do the conversion for you