gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
429 stars 97 forks source link

error: cannot find builtin CJK font #77

Closed Insua closed 1 year ago

Insua commented 1 year ago

some invoice pdf convert show this error

gen2brain commented 1 year ago

CJK fonts are not included in precompiled libraries, you must use external mupdf library.

Insua commented 1 year ago

`` ➜ pdf2image git:(master) go build -tags=extlib

github.com/gen2brain/go-fitz

/home/insua/go/pkg/mod/github.com/gen2brain/go-fitz@v1.20.2/fitz.go:6:10: fatal error: mupdf/fitz.h: No such file or directory 6 | #include <mupdf/fitz.h> | ^~~~~~ compilation terminated. ``

use external show errors

gen2brain commented 1 year ago

@Insua see https://github.com/gen2brain/go-fitz/issues/35#issuecomment-1434655187