This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Java convert PowerPoint presentation slide to image

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this article, I will explain the steps you can convert the PowerPoint presentation slides to image file format. By using Spire.Presentation for JAVA, we can easily convert the presentation slides to bitmap and metafile image in JAVA applications. The supported images could be in Jpeg, Jpg, Png, Tiff, and SVG format etc. As widely known that there are two kinds of graphics for the image format, Bitmap images and vector images. We can not only save the whole PowerPoint presentation slides as image, but also convert the single element on the presentation slides, such as chart, table and shapes to image. Here I will show you how to convert the presentation slides to images from the following three parts:

  • Convert the presentation slides to BMP images
  • Convert the presentation slides to SVG
  • Convert the single element (table, chart and shapes) on the presentation slides to image.


  • Convert the presentation slides to BMP images
    By using ISlide.SaveAsImage() method, we could easily convert specific presentation slide to BMP image in Jpg, Png, Tiff, Bmp, here we will use .pptx to .png as example:





    Convert the presentation slides to SVG (Scalable Vector Graphics)
    By using saveToSVG() method, we could save PowerPoint document to Scalable Vector Graphics easily.




    The table, chart and shape on the presentation slides are the single element on the presentation slides and all of them are defined as shapes. Here I will show you how to only convert the table, chart and shapes on the presentation slides to images by calling getShapes().SaveAsImage(int shapeIndex) method to save table, chart and shape as image.



    Thanks for reading and hopes it helps.

     
    Saloon Keeper
    Posts: 5982
    154
    Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Also see https://coderanch.com/wiki/659922/Read-PowerPoint-files for an approach using the Apache POI library.
     
    It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
    Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
    https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!