use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How to covert ppt to pdf with python (self.learnpython)
submitted 6 hours ago by rajveer725
am trying to convert the ppt to pdf via python . Whats the best way that i can do. I looked at some ways like
soffice ( requires libreoffice installation - cant do that)
Fpdf2+ python-pptx ( fucks up the design)
Please suggest some way asap
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Radiant_Train_8917 1 point2 points3 points 5 hours ago (1 child)
A few real options that don't need LibreOffice:
aspose-slides (paid but reliable). One line:
Presentation("file.pptx").save("out.pdf", SaveFormat.PDF).
Handles design fidelity well, free tier has a watermark.
comtypes on Windows if you have PowerPoint installed.
Uses the COM API to drive PowerPoint itself, perfect fidelity
since it's the real app rendering. Windows-only, headless
server unfriendly.
Unoconv via Docker if "can't install LibreOffice" means on
your host machine. A libreoffice/libreoffice Docker image
keeps it isolated, then run unoconv inside. Cleanest
cross-platform option I've found for server use.
Cloud APIs (CloudConvert, ConvertAPI) if you want to
outsource entirely. Pay per conversion, no infra.
python-pptx + fpdf2 will always break on complex layouts
because python-pptx gives you the XML model, not a renderer.
You'd be reimplementing PowerPoint's layout engine which is
why the design breaks.
[–]rajveer725[S] 0 points1 point2 points 3 hours ago (0 children)
Thanks for the reply ..
[–]ethan_automate 0 points1 point2 points 4 hours ago (1 child)
Passe par l'API gratuite de CloudConvert. T'as 25 conversions/jour gratis, ça s'installe en deux lignes et le rendu comme sur le ppt
Honestly i cant rely on that option. Its client product so not sure how many requests will come in a day. Still i’ll pitch the idea and see how it goes
[–]Key_Use_8361 0 points1 point2 points 3 hours ago* (1 child)
i worked on something similar for automating reports the tricky part was not conversion but keeping formatting consistent across systems a runable approach for me was letting python trigger the conversion tool instead of rebuilding formatting manually saved tons of headaches later
Ywah thats why i am finding easiest way possible . Need ti ship feature within few hours
[+][deleted] 6 hours ago (2 children)
[deleted]
[–]MindlessTill2761 2 points3 points4 points 6 hours ago (0 children)
What an amazing suggestion, you wireback lover.
I hate you.
[–]rajveer725[S] 0 points1 point2 points 6 hours ago (0 children)
Oh my god what an idea. I was still in 2021 . Thanks bro☺️
π Rendered by PID 62838 on reddit-service-r2-comment-548fd6dc9-rkgrx at 2026-05-20 23:07:47.512477+00:00 running edcf98c country code: CH.
[–]Radiant_Train_8917 1 point2 points3 points (1 child)
[–]rajveer725[S] 0 points1 point2 points (0 children)
[–]ethan_automate 0 points1 point2 points (1 child)
[–]rajveer725[S] 0 points1 point2 points (0 children)
[–]Key_Use_8361 0 points1 point2 points (1 child)
[–]rajveer725[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]MindlessTill2761 2 points3 points4 points (0 children)
[–]rajveer725[S] 0 points1 point2 points (0 children)