html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

Google Chrome: Failed to load PDF

Open sultanboss opened this issue 9 years ago • 5 comments

I have upgraded to new version (v4.6.0) using composer and after successful setup, it works great in Firefox, IE, Adobe Acrobat except Google Chrome browse. Every time it shows 'Failed to load PDF document'.

image

sultanboss avatar Apr 06 '17 19:04 sultanboss

hum, have you a link to test the error ?

and if you force download, is it working ?

spipu avatar Jun 14 '17 08:06 spipu

I too have this issue - although on a test site - try:

https://77.68.89.64/print/address?userId=lorain+%5BUser%5D&orderId=150-944-9208&googleTest=true

(ignore the security certificate warning) .

This gives the choice of printing an address label using various formats - the on screen google chrome viewer shows the correct output, but then any attempt to right click and Save As (or open in Adobe Acrobat instead) gives Failed to load PDF document.

Could it be the certificate setting? It works fine in other browsers.

RWAP avatar Dec 11 '17 15:12 RWAP

maybe the cert. did you try in http instead of https ?

spipu avatar Jan 20 '18 14:01 spipu

Ah yes - it does seem to be down to the invalid certificate setting (there is no problem in http) - once we have the website up and running it should therefore be resolved !

RWAP avatar Jan 20 '18 14:01 RWAP

Ok ! I close the issue

spipu avatar Jan 20 '18 16:01 spipu