unoconv / unoserver

MIT License
552 stars 77 forks source link

Is it possible to specify additional export filters with unoserver? #7

Closed ezhikov closed 1 year ago

ezhikov commented 2 years ago

Hello!

My goal is to create tagged PDF documents and right now I'm using unoconv to convert programmatically created fodt documents to pdf. With unoconv I can specify export filters like UseTaggedPDF=true and SelectPdfVersion=2, but can't find how to supple same filters to unoconvert. Is it possible crrently? If not, do you have plans to implement it? I'm not really familiar with python and UNO, but I'm willing to contribute, if you provide some guidance.

gulien commented 2 years ago

👍

The following flags would also help me to switch to unoserver in Gotenberg:

regebro commented 2 years ago

We definitely want to implement some more flags, but are waiting to see which ones are requested a lot. These seem to be good candidates. We'll look into that.

gulien commented 2 years ago

@regebro a way would be to offer a sort of "passthrough" flag, so that you don't have to maintain an exhaustive list, i.e.:

--uno-args="-env:UserInstallation=//file://tmp/foo"
regebro commented 2 years ago

Well, Uno isn't a command line, so you can't really pass them through. There are certainly some high level options we should implement, like the environment settings.

gulien commented 2 years ago

Indeed, good point; I've been playing with LibreOffice headless lately, and I totally missed the fact you are using uno for interacting with it 😄

regebro commented 1 year ago

The next version of unoserver will support a --filter-options parameter.