You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDF text rendering modes (Tr operator with values 4-7) that clip don't work as per PDF spec section 9.3.6 Text rendering mode.
See this very minimal PDF with Tr 7 - changing to Tr 5 also does not work (but then you can see the stroked outline of where the text clip should be). The image of the cat has a black border so you can see where the text clipping should be happening:
This is a known issue, and it actually works with disableFontFace=true set.
The problem is that we don't unconditionally load the standard fonts, since that would be slower in general and that the standard fonts that we ship aren't "complete" enough; please see the discussion in PR #12726.
Fails in NPM pdfjs-dist@3.1.81
That version is no longer supported, please find the latest releases at https://mozilla.github.io/pdf.js/getting_started/#download
(Also, for future reference, please remember to fill out the Configuration:-section of the ISSUE_TEMPLATE since that very often matters.)
Maybe we could to fix this bug in using the css property clip-path with a value set to url(...) where the element pointed by the url could be a svg clipPath containing a text node using the font where we don't have the glyph paths.
PDF text rendering modes (
Tr
operator with values4
-7
) that clip don't work as per PDF spec section 9.3.6 Text rendering mode.See this very minimal PDF with
Tr 7
- changing toTr 5
also does not work (but then you can see the stroked outline of where the text clip should be). The image of the cat has a black border so you can see where the text clipping should be happening:CatImageTextClip.pdf
Fails in NPM pdfjs-dist@3.1.81 as well as latest Firefox browser (and prior versions).
What is the expected behavior? (screenshot from Acrobat)

For
Tr 7
:What went wrong? (add screenshot)

The text was updated successfully, but these errors were encountered: