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

Error occurred generating the pdf #265

Open
websoptimization opened this issue Mar 29, 2022 · 8 comments
Open

Error occurred generating the pdf #265

websoptimization opened this issue Mar 29, 2022 · 8 comments

Comments

@websoptimization
Copy link

Hi,

I am trying to generate pdf from html content but i'm getting this error in catch block

[Error: Please retry, Error occurred generating the pdf]

Here, i attached my class file
htmlToPdf.js.zip

OS
Android

Environment
"react-native-html-to-pdf": "^0.12.0",
"react": "17.0.2",
"react-native": "0.65.1"

@GuoMeng6
Copy link

+1 I also encountered this problem, is there any one can help how to fix it?

@mk04366
Copy link

mk04366 commented Sep 12, 2022

Same issue here. @christopherdro Can we get some help on this? Not sure if this is a memory issue but this occurs randomly and forces the app to crash. Thanks!

@Youmir
Copy link

Youmir commented Dec 2, 2022

Please retry, Error occurred generating the pdf]

Did you find any workaround ?

@BraveEvidence
Copy link

This will help https://www.youtube.com/watch?v=4CBUXv8d0I0

@stale
Copy link

stale bot commented Jul 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 15, 2023
@liamjones
Copy link
Contributor

We've had issues with this on Android too. We dug into it quite a bit and, from what we could see, it was failing within Android itself inside the PrintDocumentAdapter's code, not this module. Unfortunately, the OS doesn't provide any details about why it failed. Seems to be somewhat intermittent too - it can fail on a device repeatedly one day and then work on a different day.

@stale stale bot removed the stale label Jul 17, 2023
@heart2friend
Copy link

heart2friend commented Aug 1, 2023

Any solution to this problem I am also facing same issue. Getting below error. It failing when trying to embed images.

Error: Please retry, Error occurred generating the pdf
at Object.promiseMethodWrapper [as convert] (\node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:105)
at eval (VM7 src\helpers\deliveryReceipt.bundle:34)
at Generator.next ()
at asyncGeneratorStep (\node_modules@babel\runtime\helpers\asyncToGenerator.js:3)
at _next (\node_modules@babel\runtime\helpers\asyncToGenerator.js:22)
at \node_modules@babel\runtime\helpers\asyncToGenerator.js:27
at tryCallTwo (\node_modules\promise\setimmediate\core.js:45)
at doResolve (\node_modules\promise\setimmediate\core.js:200)
at new Promise (\node_modules\promise\setimmediate\core.js:66)
at \node_modules@babel\runtime\helpers\asyncToGenerator.js:19

Copy link

stale bot commented Mar 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

7 participants