Learn how to convert RTF documents to PDF using Python: https://blog.aspose.com/2021/11/10/convert-rtf-to-pdf-using-python/
Last active
November 11, 2021 04:38
-
-
Save aspose-com-gists/52425252083df228f53a53d116caff2b to your computer and use it in GitHub Desktop.
Convert RTF Documents to PDF in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.words as aw | |
# load RTF document | |
doc = aw.Document("sample.rtf") | |
# save as PDF file | |
doc.save("document.pdf", aw.SaveFormat.PDF) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment