unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.46k stars 250 forks source link

[BUG] no matching font found in the system #547

Closed sagar-kalburgi-ripcord closed 4 months ago

sagar-kalburgi-ripcord commented 4 months ago

Description

When I use unipdf in a debian docker container to merge several PDF files, I get an error no matching font found in the system

But when I run the same logic locally on my Macbook I do not get this error.

Expected Behavior

Unipdf should not throw such error or need a way to mitigate the error. Do we need to install fonts in the Dockerfile? If so how do we do that?

Actual Behavior

Steps to reproduce the behavior: Unable to specify steps to reproduce because it is only reproducible in a Kubernetes environment using our proprietary code.

sagar-kalburgi-ripcord commented 4 months ago

To be more specific, the error is returned by a call to pdfWriter.Write()

3ace commented 4 months ago

@sagar-kalburgi-ripcord on linux environment, you could try adding some fonts in one of the following folders:

sagar-kalburgi-ripcord commented 4 months ago

Hi @3ace thanks, I did install some fonts and the issue seems to be resolved now