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

Example is not working

Open pnyennhi opened this issue 4 years ago • 3 comments

I've accessed this example link but it seemed not to be working. Nothing happened when I clicked Generate Pdf button. https://codesandbox.io/s/l2l4pz0jyl

Could you please give me a working one?

pnyennhi avatar Sep 30 '21 08:09 pnyennhi

With Chrome clicking on the Generate Pdf button I get: Download is disallowed. The frame initiating or instantiating the download is sandboxed, but the flag ‘allow-downloads’ is not set. See https://www.chromestatus.com/feature/5706745674465280 for more details.

Using the sandbox with Firefox works ok.

Ed-Gilbert avatar Oct 06 '21 00:10 Ed-Gilbert

I tried the sandbox example.I can download the document but it's empty.

7mioda avatar Oct 06 '21 09:10 7mioda

When using CodeSandbox the application needs to be opened in a new window in order for the generate pdf button to work. The saved PDF does not seem to be an accurate view of the page however.

fkhan77 avatar Oct 12 '21 10:10 fkhan77