pymupdf / PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
https://pymupdf.readthedocs.io
GNU Affero General Public License v3.0
5.17k stars 495 forks source link

Text Color Change for different fonts #3517

Closed meghanaviyyapu closed 4 months ago

meghanaviyyapu commented 4 months ago

Tried to change change the font color of the first line of text using page.insert_text and applying redactions. While inserting text used the font (TimesNewRomanPS-BoldMT) extracted using span["font"]. After this process, was getting an error "font at xref 5 is not supported" Could you let me know how it can be resolved? [Uploading FireEmergencyGuide_untagged 1.pdf…]()

JorjMcKie commented 4 months ago

This is a duplicate of the quoted discussion. Therefore, there is no need for this post - making it an issue will not change anything.