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

DOCX to PDF using template #430

Closed
DavidAyliffe opened this issue Dec 13, 2017 · 3 comments
Closed

DOCX to PDF using template #430

DavidAyliffe opened this issue Dec 13, 2017 · 3 comments

Comments

@DavidAyliffe
Copy link

Is there any way to convert from DOCX to PDF and apply a template to the PDFs produced?

I'm trying:

unoconv -f pdf $docxfilenamehere -t tempate.dotx

but get an error

unoconv: RuntimeException during import phase:
Office probably died. Unsupported URL <-t>: "from LoadEnv::initializeLoading"

should I give up?

@abidulrmdn
Copy link
Contributor

looking for the same answer as well.
is there an example or something?

@regebro
Copy link
Member

regebro commented Feb 18, 2019

This works for me:

unoconv -t templatefile.ott -o output.pdf input.docx

The input filename is always last. Yeah, that can be confusing.

@DavidAyliffe
Copy link
Author

thanks

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

No branches or pull requests

3 participants