Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 21, 2022 18:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/24198c493efe72e895b38ec04dd6978d to your computer and use it in GitHub Desktop.
Save aspose-com-gists/24198c493efe72e895b38ec04dd6978d to your computer and use it in GitHub Desktop.
Convert PDF to HTML in Python
import aspose.words as aw
# Load the PDF file
doc = aw.Document("PDF.pdf")
# Save the document as HTML
doc.save("Document.html")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment