loicbcn
Posts: 3
Joined: Tue Sep 13, 2022 7:37 am

Offline exporting - pdf - Invalid argument passed to jsPDF.scale

Hello,

I made a map and try to export it.

All the export menu functionalities are woking, except the pdf export, witch returns the message:
"Uncaught (in promise) Error: Invalid argument passed to jsPDF.scale"

The pdf export is working for anothers maps, and i don't uderstand the matter with this one.

You can see this map here : https://loicbcn.github.io/demos/map_to_pdf.html

Thanks for your help.
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Offline exporting - pdf - Invalid argument passed to jsPDF.scale

Hi loicbcn!
Welcome to our forum and thanks for contacting us with your question!

Please create a live demo with the error - without seeing your chart configuration it will be hard to say what is not working and what can be done. You can start here:
https://jsfiddle.net/BlackLabel/v1xtcy2b/

Regards!
Hubert Kozik
Highcharts Developer
loicbcn
Posts: 3
Joined: Tue Sep 13, 2022 7:37 am

Re: Offline exporting - pdf - Invalid argument passed to jsPDF.scale

Hello,

The same error occurs in your fiddle :) ->
https://jsfiddle.net/BlackLabel/v1xtcy2b/

Trying to export this map to pdf give the message in the devtools console:
"Uncaught (in promise) Error: Invalid argument passed to jsPDF.scale" with firefox 91.7.0esr (64 bits)
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Offline exporting - pdf - Invalid argument passed to jsPDF.scale

loicbcn,
My and my colleague have investigated this issue and it looks like a bug. We have created a ticket on our GitHub: https://github.com/highcharts/highcharts/issues/17734

For that moment I am not able to give you any workaround for that bug instead of one in the GitHub ticket (with plugin disabling stroke-width="inherit"), but please, leave your comment on this ticket and maybe someone will find a temporary solution for your problem.

Kind regards!
Hubert Kozik
Highcharts Developer
loicbcn
Posts: 3
Joined: Tue Sep 13, 2022 7:37 am

Re: Offline exporting - pdf - Invalid argument passed to jsPDF.scale

Hubert.k,

Merci for your investigations about this problem.
I hope this issue will have a solution.

Regards!
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Offline exporting - pdf - Invalid argument passed to jsPDF.scale

You're welcome! In case of any further questions, feel free to contact us again.
Hubert Kozik
Highcharts Developer

Return to “Highcharts Maps”