savePDF not including content inside floatingObjects

Posted by: pchava on 27 November 2018, 5:34 am EST

  • Posted 27 November 2018, 5:34 am EST

    Hi,

    I am trying to download a sheet in PDF using the API - savePDF. The sheet also contains some custom svgs in a floating objects. But, they are not coming up in the downloaded PDF. Is there a way to get these as well?

  • Posted 28 November 2018, 2:15 am EST

    But we are able to get pictures in the pdf.

  • Posted 28 November 2018, 3:58 am EST

    Hello,

    A similar issue has been discussed here on this forum link wherein Spread.Sheets have SVG image compatibility issue with IE11 using savePDF() method and it has been marked as a limitation as IE11 by our developers:-

    https://www.grapecity.com/en/forums/spread-sheets/spreadjs-save-pdf-with-svg

    Please have a look at this post and let us know if your issue is something else or you are using some other browser. We will look into this issue thereon.

    Thanks,

    Reeva

  • Posted 29 November 2018, 1:32 am EST

    This is a very similar issue but not an exact one. The issue in the link you have provided is with “pictures” specifically to IE browser.

    But in my case, it is regarding to “floatingObjects” in all the browsers.

  • Posted 4 December 2018, 1:48 am EST

    Any update on this?

  • Posted 6 December 2018, 11:11 am EST

    Hello,

    FloatingObjects are not part of the sheet data. We can only export the cell data/image to PDF. You can use the image as background for cell and export it to PDF.

    Could you please provide more information on your use case, why do you want to export floating objects to PDF?

    Thanks,

    Deepak Sharma

  • Posted 11 December 2018, 2:47 am EST

    There are some advanced charts and graphs that we are rendering in FloatingObjects which need to be downloaded through PDF.

  • Posted 12 December 2018, 9:43 am EST

    Hello,

    I have submitted it as a feature request, it may get implemented in future builds of SpreadJS.

    The tracking id for this is 268309.

    Thanks,

    Deepak Sharma

  • Posted 17 December 2018, 4:48 am EST

    Please update us once done.

  • Posted 18 December 2018, 5:34 am EST

    Hello,

    Our development team has asked if you could provide us a demo that includes their svg/ charts/graphs as a floating object?

    This will help us to understand the requirement in detail.

    Thanks,

    Deepak Sharma

  • Posted 19 December 2018, 4:53 am EST

    So, I may not be able to provide you the code. But I can provide you the usecase. We are loading high charts (highcarts library) and fusion charts (fusioncharts library) in the floating charts. When we save this sheet to PDF, these charts are not included in the PDF.

    Also, while we are trying to convert the sheets with huge number of cells (eg: 40K cells) to PDFs using savePDF, it is taking very long to start download. Can we have any better way to do this?

  • Posted 20 December 2018, 6:06 am EST

    Hello,

    Thank you for providing us more detail about your requirements, but we need your sample to see how exactly are you using the charts in floatingObjects?

    Please provide us a sample app where you have added highcharts/fusioncharts to the floating objects.

    Thanks,

    Deepak Sharma

  • Posted 5 April 2022, 4:21 pm EST

    Hello,

    Any update on the progress of this feature?. We have a similar requirement and were wondering if savePDF works with SVG elements inside a customFloatingObject.

    I am attaching a sample JSON file

  • Posted 7 April 2022, 3:18 am EST

    Hi,

    The sample JSOn is missing could you please try to attach it again. However, We are waiting for the sample from your end in which you are rendering the charts in the floating objects. Please provide the sample so that we could have a better understanding of the issue and help you accordingly.

    Regards,

    Avinash

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels