-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determining when to use disableFontFace #11311
Comments
@timvandermeij is there any update on this? |
@sayo96 as far as I am aware there is not a way to determine which setting you need, and depending on your pdfs you may need the effects of both setting to correctly render. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
After PR #12726, rendering of standard fonts should work even with Lines 168 to 169 in 891f21f
Furthermore, it should also be possible to successfully use |
I'm running into issues similar to #4244 but am interested in knowing if there is a way to programmatically determine if I should use
disableFontFace
.I'm attempting to OCR invoices, and some of them render correctly with
disableFontFace:false
and others withdisableFontFace:true
, if you supply a pdf the wrongdisableFontFace
you end up with a pdf that is void of text, or has boxes as is documented in other issues.My question is, Is there a way to determine (via the
pdfDocument
metadata or any other means) if I should use thedisableFontFace
option when calling.getDocument()
?I have tried getting text content and looking at fonts, but I'm not sure if I can just say "oh this text content seems to be all in Helvetica, so I know that I need to use
disableFontFace:true
" That information and a list of system fonts seems like the only path forward based on the other issues I've read.Thank you.
The text was updated successfully, but these errors were encountered: