Repository navigation
Scale doesn't work for PDF offline exporting #19762
Description
Activity
Hi @karolkolodziej! Thank for your reply!
But it still doesn't work for PDF type in your demo.
Reproduce steps: exporting PDF type with
scale = 1andscale = 3. The PDF files are totally the same.Ah you're right! The scale works fine with
chart.exportChartin your demo. But it used the Highchart server side export.In my case, I want to use an offline export on client side (so no data sent to Highchart), then I tried
chart.exportChartLocal, but it seems didn't work
My new demoI'm appreciate your support, but can you check again?
Reacted by wavewalker5357You are right about the
exportChartLocal. The scale isn't properly applied when using offline export.As a workaround you can try to declare the sourceWidth and sourceHeight- demo.
With that, you can sort of manually set the scale.Reacted by hattn125Yes, sourceWidth and sourceHeight are good for workaround in my case at the moment :)
Just curious: do you think there is any chance that Highchart will fix it in an offical release, instead of such workaround?
Let me bring it to the team and we will see what we can do 😉
We will keep you posted!Reacted by hattn125- added a commit that references this issue
on Sep 21, 2023 - added a commit that references this issue
on Sep 22, 2023
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone


Actual behaviour
When I use the offline-exporting module, I noticed that: the option
exporting.scaledidn't work for PDF type. The PDF file always has width/height same as parent container, without scale.Other types (PNG/JPEG) works properly.
Expected behaviour
The option
exporting.scaleshould work for PDF type in offine-exporting, same as other types.Live demo with steps to reproduce
https://jsfiddle.net/37zb2h68/9/
Product version
Highcharts 10.x
Affected browser(s)
All browsers