Skip to content
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

Uncaught Error: Requesting object that isn't resolved yet (font name) #275

Closed
3 tasks done
ajboni opened this issue Sep 18, 2018 · 2 comments
Closed
3 tasks done

Comments

@ajboni
Copy link

ajboni commented Sep 18, 2018

Before you start - checklist

  • I have read documentation in README
  • I have checked sample and test suites to see real life basic implementation
  • I have checked if this question is not already asked

Hello!
Some types of pdf throws those errors, cannot be sure what makes them distinct to others:

Uncaught Error: Requesting object that isn't resolved yet Times_path_ 
    at PDFObjects_get [as get] (pdf.js:8838)
    at FontFaceObject_getPathGenerator [as getPathGenerator] (pdf.js:9698)
    at CanvasGraphics.paintChar (pdf.js:10842)
    at CanvasGraphics_showText [as showText] (pdf.js:10990)
    at CanvasGraphics_executeOperatorList [as executeOperatorList] (pdf.js:10392)
    at InternalRenderTask__next [as _next] (pdf.js:8991)

The font name varies from files.
Some examples:
pdf-test(working).pdf
test(not working).pdf

I think they work ok on v3.

thanks!

Environment

  • React-PDF version "react-pdf": "^4.0.0-beta.4",
  • React version "react": "^16.4.2",
  • Webpack version (if applicable) "webpack": "^4.17.2",
@wojtekmaj
Copy link
Owner

Hey there,
thanks for report.
I checked the PDFs you have attached, and it seems to work fine in my test suite (included in the repository) using the newest React-PDF beta.
Is that a full error stack? Does it happen on all browsers? Does it happen only in your project, or in the test suite too?

@ajboni
Copy link
Author

ajboni commented Sep 27, 2018

Hmm It seems to be something related to system fonts...

Check this mozilla/pdf.js#4244
Im trying in an electron project.
I will try with the test suite and report back, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants