

To view and use saved the document saved in this format, you would need to have Adobe Acrobat Reader or Adobe Acrobat Pro version 9.0 or higher installed on the local machine also the local machine must have the flash player of version at least 9.0 installed. The saved document can be freely sent over e-mail or spread using any other means. exportAsInteractivePDF and getInteractivePDFBase64Encoded Function Parametersīesides exporting to PDF with static chart image, the An圜hart Stock component also allows exporting chart to a PDF document with an embedded flash player, where the exported chart would be identical to the one user works with.Ī chart that is embedded in a PDF document this way is completely autonomous.setup a Twitter sharing URL separately when setting the anychart.export.setup a MySQL database for Twitter sharing using SQL scheme.(last path of which is always /sharing/twitter_oauth) to the Export Server. create your own Twitter App and provide twitter_key, twitter_secret and twitter_callback.If you want Twitter sharing to work through your server, you should: Note: the /sharing/twitter_oauth and /sharing/twitter_confirm requests are used inside Export server, which means you don't need to send anything by yourself there. In the handler of /sharing/twitter_confirm request, the Export Server uploads the shared image with Twitter API and posts a new tweet with that image. This request should contain Twitter message parameter only - a string of no more than 140 characters. When the user confirms to post the image and clicks the TWEET button, there will be a request to /sharing/twitter_confirm. If the user is already authorized in the app, the posting dialog will be displayed immediately. After that, the dialog window of posting images will be displayed. In the handler of /sharing/twitter_oauth request, the Export Server gets such params as oauth_token, oauth_token_secret, user_id, screen_name, image_url (user picture) and user_name and saves them to the MySQL database.

This request accepts oauth_token and oauth_verifier parameters, you can read about OAuth here. After that, the user will be redirected to the /sharing/twitter_oauth callback. The user should confirm that he gives the app the rights to post the image. If the user isn't authorized, the Twitter Authorization dialog will be displayed. There are two options here: the user is authorized in the An圜hart Twitter application or not.

sharing/twitterįirst of all, the user sends a request to /sharing/twitter that contains SVG or script from which the image will be generated and posted on the page - the request should contain the same parameters as a request to /png URL does. It requires MySQL database to be set up and uses three types of requests. Sharing images on Twitter is implemented with the An圜hart Twitter app. These social networks get the prepared picture via the link and just allow the user to post it on the page. Sharing on Facebook, LinkedIn, and Pinterest is implemented with the help of the commands for saving images.

Sharing on Facebook, LinkedIn, and Pinterest You should provide the access to shared image through that URL by setting up Nginx, for example. The second parameter is the URL prefix which will be concatenated with a shared image name and returned to a user. The first parameter is the path to the folder where images will be stored. When you use the Export Server on your own server and you want the sharing to work properly, you should set up -saving-folder and -saving-prefix. The An圜hart Export Server provides an ability to share chart images in social networks, such as Facebook, Java -jar export-server.jar -C settings.toml You can pass a config file with -C option, like this: Script = "var chart = anychart.line() ntainer('container') chart.draw() " # here you can pass cmd options for mode = "cmd" # settings from twitter app settings for sharing in Twitter # prefix which will be returned when saving image Make the background white or leave it transparentĪn圜hart Export Server provides an ability to pass all parameters in a config file using TOML format: If it presents, request returns URL of a saved image
#Anychart pdf landscape export how to#
Script or SVG that should be transformed into a pictureĪ field that contains the information about the data, it might be "script" or "svg"Ī field that tells how to export the result (file or as base64) Typical Export and Twitter Sharing request contains the parameters listed below: Parameter RequestsĪn圜hart Export Server supports the following requests: URL Now you are ready to launch the An圜hart Export Server.
