Read the complete article on how to convert a PDF file to HTML in Python: https://blog.aspose.com/words/convert-pdf-to-html-in-python/
Last active
January 7, 2025 14:38
-
-
Save aspose-com-gists/24198c493efe72e895b38ec04dd6978d to your computer and use it in GitHub Desktop.
Convert PDF to HTML in Python
This file contains hidden or 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 the PDF file | |
doc = aw.Document("PDF.pdf") | |
# Save the document as HTML | |
doc.save("Document.html") |
We tested on MAC, and it works fine. Please elaborate on your error, or you may contact our free support forum
Yeah it worked, I had to lower down the version of Python to 3.11.4
Hoped the library would be free
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
I used this, but the process gets Killed every time; I am using a Mac, and It is working fine with their online converter
Any help will be appreciated,
Thanks in advance