I am trying to export svg diagram to pdf using JSPF library. Problem is when user click to download first time it gives blank pdf file But second time it generates correct file. Below is my code, please help i am trying from last two days.I am trying to export svg diagram to pdf using