pymupdf / PyMuPDF-Utilities

Demos, examples and utilities using PyMuPDF
GNU Affero General Public License v3.0
548 stars 153 forks source link

document rescale after replacing fonts #117

Closed hbghlyj closed 8 months ago

hbghlyj commented 10 months ago

Emoji fonts in the following PDF are not embedded, so it is blank when opened in PDF viewer: google-Noto+Colr+Emoji+Glyf-v14.html.pdf

Using repl-font.py to replace fonts, the result is too small (Shrunk to the upper left corner)

The content of google-Noto+Colr+Emoji+Glyf-v14.html.pdf-fontnames.json is

[
  {
    "oldfont": [
      ""
    ],
    "newfont": "cjk",
    "info": "Not embedded!"
  }
]

For comparison, the result of using Adobe Acrobat "Edit pdf" to replace fonts with "Segoe UI Emoji" is

JorjMcKie commented 8 months ago

As mentioned in the disclaimer of this repository, we do not accept issues for the examples. They are intended to help you creating your application, but you still are responsible to adjust them as needed.