-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Is there a way to handle a warning? (e.g. 'Warning: getPathGenerator...') #11860
Comments
Duplicate of #11311 |
Thanks for the quick reply, I've seen issue #11311 @Snuffleupagus. Even though the motivation for the issue is the same as mine, the broader issue in the library design I brought up is more general and perhaps is worth being discussed: Is it ok for a render error to be uncatchable? In my opinion, addressing this question could make pdf.js a more robust and helpful pdf viewer library. |
That's an internal parameter, and trying to set it won't actually do anything; please see Lines 134 to 137 in b6f69d4
That shouldn't actually be the case though, with Lines 2690 to 2696 in b6f69d4
|
Ohhh 🤦♂️ totally my bad, I missed that option. I saw I can confirm Thanks @Snuffleupagus and sorry for the wasted time 😅 . |
Hi, I'm using version 2.4.456 in Node 12 to automatically render pdfs' pages to images. I've stumbled with many pdfs where Font errors of the form:
Warning: getPathGenerator - ignoring character: "Error: Requesting object that isn't resolved yet Helvetica_...."
occur, producing blank text. I went over lots of issues (such as #4244), and it seems the only workaround is using the option
disableFontFace:false
, which is nice but destroys the rest of the working PDFs. I'm trying to find a way to detect the getPathGenerator Warning and then using thedisableFontFace:false
flag only in those cases. I've triedignoreErrors
with no luck.Do you have any idea if this is possible without forking the lib? Any tip will be highly appreciated!
The text was updated successfully, but these errors were encountered: