Inconsistent Rendering of Shapes During PDF Export in SpreadJS

Posted by: sasaki on 5 October 2024, 1:14 pm EST

  • Posted 5 October 2024, 1:14 pm EST

    Hello,

    I am experiencing an issue with PDF export in SpreadJS where some shapes are not consistently rendered. In certain cases, the shapes are exported correctly, while at other times they are missing from the output.

    Details:

    The issue occurs with both simple and complex shapes (e.g., rectangles, circles).

    There seems to be no consistent pattern; sometimes the shapes are included in the exported PDF, and sometimes they are not.

    I am using the gc.spread.sheets.print module for PDF export, and the shapes are correctly displayed in the SpreadJS sheet itself prior to export.

    I have already checked the print settings and confirmed that all visible content is supposed to be printed.

    Steps I’ve taken:

    Ensured that the SpreadJS version is up to date.(v16)

    Verified that all shapes are fully within the page boundary before export.

    Cleared browser cache to rule out caching issues.

    Could this be related to certain configurations in the PrintInfo class, or is there any known issue with shape rendering during PDF export? Any advice or solutions would be greatly appreciated.

    Thank you in advance for your help!

  • Posted 6 October 2024, 11:23 pm EST

    Hi,

    I tested with the latest version of SpreadJS V17.1.6 and I was unable to replicate the issue at my end. At my end, it correctly exports the PDF with all the shapes. Also, currently, there is no such known issue with the PDF Export from the SpreadJS.

    For the PDF Export, you need to use the PDF Module. You could refer to the following demo on PDF Export: https://developer.mescius.com/spreadjs/demos/features/pdf/basic-pdf/purejs

    Also, the latest version of the SpreadJS is V17.1.6, and you could try with the latest version also.

    I have tested with the following sample: https://jscodemine.mescius.io/share/QkXcI0pT7UCFIqa0gWr4vQ/?defaultOpen={"OpenedFileName"%3A["%2Fapp.js"]%2C"ActiveFile"%3A"%2Fapp.js"}

    For further investigation, we would require a sample. Could you kindly share us a sample replicating the issue as it might be an issue with the sample? You could also modify the above sample and share it with us replicating the issue.

    Regards,

    Ankit

Need extra support?

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

Learn More

Forum Channels