Skip to content

RFC: Use Gotenberg for PDF conversion #969

@anehx

Description

@anehx

Related to #528

Currently we use unoconv / libreoffice with a lot of magic (to make sure processes actually die if neccessary) to convert office documents to a PDF. This works, but we often have issues with certain fonts that are not installed etc. and the whole process magic with isolation is quite complex. Apart from that reasoning, unoconv is long deprecated.

The purpose of DMS is not to be a PDF converter but a template engine. We will never be able to convert perfect PDFs and frankly, shouldn't if there are services that are specialized to do this. I found a nice OSS (MIT license) solution "Gotenberg" which can be deployed as a docker container:

There is even a python client for it:

My proposal would be to remove everything unoconv / libreoffice related from this service in favor of using Gotenberg to convert to PDF.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions