Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error While converting PDF to HTML #393

Closed
bhagwats opened this issue May 17, 2017 · 1 comment
Closed

Error While converting PDF to HTML #393

bhagwats opened this issue May 17, 2017 · 1 comment

Comments

@bhagwats
Copy link

[root@localhost html]# unoconv --format=html Resume.pdf
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1098, in convert
document.storeToURL(outputurl, tuple(outputprops) )
uno.IOException: SfxBaseModel::impl_store file:///home/www/html/Resume.html failed: 0xc10

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/unoconv", line 1369, in
main()
File "/usr/bin/unoconv", line 1285, in main
convertor.convert(inputfn)
File "/usr/bin/unoconv", line 1100, in convert
raise UnoException("Unable to store document to %s (ErrCode %d)\n\nProperties: %s" % (outputurl, e.ErrCode, outputprops), None)
File "/opt/libreoffice5.3/program/uno.py", line 504, in uno_struct__getattr_
return getattr(self.dict["value"], name)
AttributeError: ErrCode
+++++++++++++++++++++++++++++++++++++
[root@localhost html]# unoconv --version
unoconv 0.7
Written by Dag Wieers dag@wieers.com
Homepage at http://dag.wieers.com/home-made/unoconv/

platform posix/linux
python 3.5.3 (default, May 4 2017, 01:06:08)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]
LibreOffice 5.3.3.2

@regebro
Copy link
Member

regebro commented Feb 27, 2019

Libreoffice can't convert PDF to HTML. It treats PDF imports as graphics, and HTML is a document format, so it can't convert it. Sorry.

@regebro regebro closed this as completed Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants