Relative Content

Tag Archive for pythonpymupdf

How to format correctly a font with Fitz

I’m currently having an issue with fitz, where I replaced a text on a PDF, and it worked perfectly, the problem is that the text is kind of incorrect, the number 9 for example is replaced as a box, like the image bellow, and here’s the code, if anyone could help me:

PyMuPDF Generate a multi-query invoice

Using one of the examples from PyMuPDF on generating an invoice, and am having issues generating multiple tables on one page, each with a different sqlite3 query. I can get the data in the tables, and they do display, just each on it’s own page with the header. I can even change the header to generate one table, and the report.sections do one more, but the third is on another page and I lose the header of course.