Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active January 7, 2025 14:38
Show Gist options
  • 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")
@aspose-com-gists
Copy link
Author

@depanshu357

We tested on MAC, and it works fine. Please elaborate on your error, or you may contact our free support forum

@depanshu357
Copy link

Yeah it worked, I had to lower down the version of Python to 3.11.4
Hoped the library would be free

@aspose-com-gists
Copy link
Author

Great!
Various features are free, but you can get a free temporary license to explore full potential of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment