How to convert PDF, PPT and PPTX into images in Scala

In this blog, I’ll explain the way to convert PDF, PPT and PPTX into images.

Sometimes, we get need to do this. The scenario could be like when we are uploading files in application -> storing them into database as image -> then showing those images to user.

In above case, First, we have to convert files (PDF, PPT or PPTX) into images.

So below are the code for all 3 to convert into images.

Convert PDF into images :
First of all we have to add dependency for this in build.sbt file:

Code :

Convert PPT into images :
Add this dependency in build.sbt file :

Code :

Convert PPTX into images :
Add this dependency in build.sbt file :

Code :

Written by 

Rishi is a Lead Consultant, with experience of more than 7 years. Rishi is product focused developer who loves developing both front-end user interfaces and scalable back-end infrastructure. He is a good team player, quick learner and a humble person. He has good time management skills, aimed to give best results and fully dedicated towards his work & responsibilities. He is able to work as individual and as well as in team. He loves to share his knowledge, therefore he often writes technical blogs.

3 thoughts on “How to convert PDF, PPT and PPTX into images in Scala

  1. Hey … is it possible to repeat this code but in php so I could convert pptx into images? thks

Leave a Reply

%d bloggers like this: