Comments (8)
Can be solved with #59
from unoserver.
Could you share the document? It doesn't seem to be a generalproblem.
from unoserver.
@regebro i have the same issue with a pptx file.
Just create a simple pptx and use unoserver unoconvert somepresi.pptx somehtml.html.
Currently i can't send this file because there are some personal datas (author, last edit user etc.)
Could not find an export filter from com.sun.star.presentation.PresentationDocument to generic_HTML
from unoserver.
I can force with: filtername = "impress_html_Export"
But than i only get a single html file. It would be nice to support a folder export with a complete html structur. Or with embed images
from unoserver.
@lublak Libreoffice sees presentations as a graphical format, and html as document format, so there wouldn't be much to convert at all. It can only do useful conversations of presentations to PDF, IMO.
What is it you are attempting to do?
from unoserver.
I try to export presentation as full web pages. (And that automatically in the background.)
It is possible to convert a presentation to a complete html page via the interface. So LibreOffice already has the possibility. Only how it looks like via the command line I do not know.
from unoserver.
Yeah, that includes defining export formats, etc, which I don't know how to do. It's possible it can be done if we implement support for filter flags, but I'm not sure even then.
If you can figure out how to do it with LibreOffice from the command line, I can look at implementing support for that.
from unoserver.
Hi @regebro,
first of all thanks a lot for your great work with this package!
We are having the same issue when using unoconvert to convert odt
to html
.
Executing unoconvert --convert-to html test.odt test.html
causes the following error:
INFO:unoserver:Starting unoconverter.
INFO:unoserver:Opening //b577c1152d56441fa928bd54d914ee07.odt
Traceback (most recent call last):
File "/usr/local/bin/unoconvert", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/unoserver/converter.py", line 248, in main
inpath=args.infile, outpath=args.outfile, convert_to=args.convert_to
File "/usr/local/lib/python3.7/dist-packages/unoserver/converter.py", line 186, in convert
f"Could not find an export filter from {import_type} to {export_type}"
RuntimeError: Could not find an export filter from com.sun.star.text.TextDocument to graphic_HTML
We can do it with LibreOffice from the command line with the following command: soffice --headless --convert-to html test.odt
.
This produces the following output on the cli: convert /data/test.odt -> /data/test.html using filter : HTML (StarWriter)
.
It looks like there is an issue when figuring out the correct filter in
unoserver/src/unoserver/converter.py
Line 87 in 3e30d67
EDIT:
Setting the variable filtername
hardcoded to "HTML (StarWriter)"
with the following line in
unoserver/src/unoserver/converter.py
Line 183 in 3e30d67
filtername = "HTML (StarWriter)"
Could you please have a look at this? Can this filter be added?
Thanks!
from unoserver.
Related Issues (20)
- Issue with unoconverter initialization: Binary URP bridge disposed during call on Windows 10 HOT 1
- Error code -11 when converting docx to pdf via unoconvert HOT 7
- Details about concurrent executions of unoconv in the README could be useful HOT 5
- Unoserver PV6 Interface Support HOT 3
- Convert a specific PDF page to a PNG HOT 1
- Unoserver Hangs randomly HOT 3
- unoserver sometimes generates errored PDF files without crashing HOT 3
- Support for embedded images in HTML exports HOT 2
- Conversion errors when running in Docker containers HOT 1
- unoserver crash randomly HOT 4
- Setting PNG export resolution? HOT 4
- Setting page number for PNG export? HOT 1
- How to start service properly? HOT 5
- unable to start UnoServer from python HOT 1
- How to apply filter to export data from xslx to csv keeping utf-8 HOT 1
- Ability to set --infilter HOT 2
- DeprecationWarning Is this slated to be fixed? HOT 2
- Troubleshooting unoconvert Network Connection Error on Ubuntu 22.04 with Python 3.10 and LibreOffice 7.3.7.2 in a Closed Network Environment HOT 7
- Why --uno-interface defaulting to --interface value instead of 127.0.0.1 HOT 2
- The value of --host-location ignored for outfile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unoserver.