react-native-html-to-pdf icon indicating copy to clipboard operation
react-native-html-to-pdf copied to clipboard

Error occurred generating the pdf

Open websoptimization opened this issue 3 years ago • 8 comments

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"

websoptimization avatar Mar 29 '22 13:03 websoptimization

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

GuoMeng6 avatar May 30 '22 08:05 GuoMeng6

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!

mk04366 avatar Sep 12 '22 07:09 mk04366

Please retry, Error occurred generating the pdf]

Did you find any workaround ?

Youmir avatar Dec 02 '22 10:12 Youmir

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

BraveEvidence avatar Mar 08 '23 07:03 BraveEvidence

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[bot] avatar Jul 15 '23 00:07 stale[bot]

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.

liamjones avatar Jul 17 '23 07:07 liamjones

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] (<My Project Path>\node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:105) at eval (VM7 src\helpers\deliveryReceipt.bundle:34) at Generator.next () at asyncGeneratorStep (<My Project Path>\node_modules@babel\runtime\helpers\asyncToGenerator.js:3) at _next (<My Project Path>\node_modules@babel\runtime\helpers\asyncToGenerator.js:22) at <My Project Path>\node_modules@babel\runtime\helpers\asyncToGenerator.js:27 at tryCallTwo (<My Project Path>\node_modules\promise\setimmediate\core.js:45) at doResolve (<My Project Path>\node_modules\promise\setimmediate\core.js:200) at new Promise (<My Project Path>\node_modules\promise\setimmediate\core.js:66) at <My Project Path>\node_modules@babel\runtime\helpers\asyncToGenerator.js:19

heart2friend avatar Aug 01 '23 08:08 heart2friend

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[bot] avatar Mar 13 '24 09:03 stale[bot]