To convert pdf to HTML, I am using the aspose.pdf library. I have installed the library through pip3 install aspose-pdf
. This library works fine for my Windows machine in Python, version 3.8 to 3.10.
But facing an:
error in linux machine: RuntimeError: Proxy error(ArgumentNullException): Value cannot be null. (Parameter ‘key’)
I have tried Centos, ubuntu, and RedHat, but getting the same error.
source code:
import aspose.pdf as pdf
doc = pdf.Document("input.pdf")
saveOptions = pdf.HtmlSaveOptions()
doc.save("output.html", saveOptions)
system details:
- os: Ubuntu 20.04, centos 7
- python version: 3.8, 3.9, 3.10
- aspose.pdf: 23.3.0 (python via . Net)
Note: all machines are newly installed Thanks in advance