Download page with highcarts as pdf






















Asked 7 years, 2 months ago. Active 4 years, 7 months ago. Viewed 25k times. I am using Highcharts in my application without any internet connection I have multiple charts on a html page, and I want to generate a PDF report that contains all the charts from this page. How can I do this without sending the data to any server on the internet?

I will be thankful for any help or any example you can provide. Thank you in advance :. Improve this question. Leon Leon 1 1 gold badge 4 4 silver badges 11 11 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Quince Quince Thank you for your help, but in this solution the data are sent to the Highcharts Export Server.

And I don't want this to happen as I said in the question : — Leon. No I have only used the export module to get the SVG data, i was watching the network tab and no data was sent — Quince. The conversion all happens in the browser, that is also why i have turned the export button off on each graph — Quince.

Leon added screen shot of network requests to the question to show no requests were sent to high chart — Quince. Hallo Quince, thanks again but I need to do it on my local server.

Can you run the example on your local server, with no internet connection? Show 7 more comments. Sebastian Bochan Sebastian Bochan 37k 3 3 gold badges 45 45 silver badges 76 76 bronze badges. Dimitris Siakavelis Dimitris Siakavelis 6 6 silver badges 8 8 bronze badges. It will exports on charts what about text? There is text inside the pdf. This is a great solution. I was wondering, however, if this is possible without the use of jQuery. Maybe this link can help you out. William Kheng William Kheng 11 11 silver badges 15 15 bronze badges.

Ryan Gavin Ryan Gavin 1 1 gold badge 7 7 silver badges 20 20 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. So this helpful howto is still required. This post saved me once a POC, so I did saved it in my favorites! Thanks for sharing kudos.

These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.

You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous.

If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages.

If you do not allow these cookies then some or all of these services may not function properly. These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device.

If you do not allow these cookies, you will experience less targeted advertising. We use cookies to offer our visitors a better experience and personalized content. We also may share information about your use of our site with our social media, advertising and analytics partners. You should see something like this: Then you need to go into HighCharts and download the correct version. Rank: Bruce Buttles wrote: Quick question: this article looks great super helpful.

Is there way to specify the page type Portrait or Landscape , page size etc parameter. By the way, this howto works in React Web as well, with some expected and minor updates. Attach your exporting script under Scripts instead of resources: And then make sure the page where you want the exports to occur, has access to that script: And finally, you can set the AdvancedFormat JSON in an "on initialize" event for that page. And it works! Log in to Answer. Log in to Answer Log in to Follow.

When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies.

This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings.

However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. More information. Allow All. Strictly Necessary Cookies Always Active. Performance Cookies Performance Cookies. Functional Cookies Functional Cookies.



0コメント

  • 1000 / 1000