When exporting a PDF file, if the column width is insufficient, the text will be cut off.

fitToWidthSettings: {

                              isFitToWidth: true,

                              gridWidth: "30",

                              chartWidth: "70"

                        }

Are there any methods to prevent the text from being cut off?






3 Replies 1 reply marked as answer

AG Ajithkumar Gopalakrishnan Syncfusion Team September 30, 2024 02:56 PM UTC

Hi Wyatt,

Greetings from Syncfusion Support,

We are unable to replicate the issue with PDF export based on the shared code snippet. On our end, text is not wrapping in the export, but words are wrapping in the web UI only. We have attached a video for reference and included a sample for review.

Video reference:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/wrap11564251138.zip

We checked the projectStartDate and projectEndDate with and without PDF export, and the text wrapping words render in a new line. We also verified the taskName as a template, and this case also renders correctly in the PDF export file.

Sample link:
https://stackblitz.com/edit/wetqf7-vdpa6f?file=src%2FApp.vue,package.json



We request you to share more information to achieve your requirement. Kindly share the details below.

  • Code snippet of the Gantt chart with the patch version.
  • If you used the PDF export event for customization, please share the details.
  • Have you faced the issue in any specific scenario or when enabling specific properties?
  • A video demo to replicate the issue, including replication steps.


Once we receive this information, we will be better equipped to identify the root cause of the issue and provide you with the necessary assistance.


Regards,

Ajithkumar G


Marked as answer

WL Wyatt Li replied to Ajithkumar Gopalakrishnan October 4, 2024 05:22 AM UTC

Updating to the latest version solved the issue.


Thanks.
 




KG Kalpana Ganesan Syncfusion Team October 4, 2024 05:30 AM UTC

Hi Wyatt,


You're welcome! Glad that the provided solution was helpful. If you have any other questions, please reach out to us, we will be happy to help you.


Regards,

Kalpana.



Loader.
Up arrow icon