i need to export the visualization in pdf format in kibana dashboards
You can use reporting to do this. You need x-pack installed in order to use reporting. For more info, see the reporting docs:
https://www.elastic.co/products/x-pack/reporting
Thanks!