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

Table of contents
Reading Time: 2 minutes

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 tech enthusiast with having around 10 years of experience who loves to solve complex problems with pure quality. He is a functional programmer and loves to learn new trending technologies. His leadership skill is well prooven and has delivered multiple distributed applications with high scalability and availability by keeping the Reactive principles in mind. He is well versed with Scala, Akka, Akka HTTP, Akka Streams, Java8, Reactive principles, Microservice architecture, Async programming, functional programming, distributed systems, AWS, docker.

3 thoughts on “How to convert PDF, PPT and PPTX into images in Scala2 min read

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

Comments are closed.

Discover more from Knoldus Blogs

Subscribe now to keep reading and get access to the full archive.

Continue reading