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

pdf generation in background thread #50

Open
mahamedh opened this issue May 26, 2022 · 6 comments
Open

pdf generation in background thread #50

mahamedh opened this issue May 26, 2022 · 6 comments

Comments

@mahamedh
Copy link

mahamedh commented May 26, 2022

is it possible to generate pdf using worker

@dai-shi
Copy link
Owner

dai-shi commented May 26, 2022

probably? what's the pdf generation library in your mind?

@mahamedh
Copy link
Author

probably? what's the pdf generation library in your mind?

yes i am using jspdf library in react web development, i am leading some latency when generating pdf,to provide good user experinece for the user i need to run the pdf generation in background....

@mahamedh
Copy link
Author

Uncaught (in promise) ReferenceError: document is not defined
i have tried jspdf pdf generation using react hooks worker i am facing above error
@dai-shi

@dai-shi
Copy link
Owner

dai-shi commented May 27, 2022

document is not defined

Ah, this means the library doesn't support running in web workers.

@mahamedh
Copy link
Author

@dai-shi thanks for update save my time, any pdf gneration library developed on top web workers?

@dai-shi
Copy link
Owner

dai-shi commented May 28, 2022

Hmm, no, I don't know.
https://www.npmjs.com/search?q=pdf%20generation
Maybe you want to find something that works both nodejs and browser.

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