I am using the muPDF library to add fields to existing PDF documents. I successfully added a checkbox indicating its appearance.
But Text fields are a problem because they need a font resource . I cannot figure out how to add fonts to a PDF document. MuPDF has functions that work with fonts, but I cannot use them properly.
Therefore, I need to know how to load a font in a PDF document and how to reference its default text field (DA).
----------------------------------------------- --- -------- EDIT -------------------------------------- --- -------------------------
I am currently using the pdf_set_free_text_details function in pdf-annot-edit.c but it only installs predefined fonts. I also want to use other fonts
If this is not the right place to ask this question, please, please, if someone can redirect me to the right place. As far as I know, MuPDF has only a website with an error message.
source
share