Giter Club home page Giter Club logo

Comments (2)

scanny avatar scanny commented on July 17, 2024 1

@shllgtca I believe you can do this with LibreOffice. It's not pretty; the LibreOffice application needs to be installed and it actually loads as though you were using it to do the save operation by hand, but it does work. Takes a fair amount of time. Probably not a problem for onesy-twosies on your own machine but can be problematic if you're running it in production in the cloud or whatever.

I can't say I've tried it for this exact purpose; I've used it for DOC -> DOCX conversions and actually used it in a production system running in the cloud on Linux. But like I say, it's ugly and slow. Much better than not being able to do it though :)

Installing LibreOffice makes the soffice (command-line) command available. I believe you'll have to convert the PPTX to PDF and then use Ghostscript or something for PDF -> PNG or whatever. This SO question has more, others on search I expect:
https://stackoverflow.com/questions/21523267/how-to-convert-pptx-files-to-jpg-or-png-for-each-slide-on-linux

So this process actually has nothing to do with python-pptx specifically, it works the same no matter how the PPTX got produced. And what you're running is essentially a command-line script, from within Python if you want or using a shell script or whatever suits.

from python-pptx.

MartinPacker avatar MartinPacker commented on July 17, 2024

An easy one to answer - but not the answer you want: python-pptx doesn't render the slides so can't do this. You'd have to automate a screen grab - on whichever platform you're on.

from python-pptx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.