Replies: 1 comment 1 reply
-
It sounds like you're facing a formatting issue with text overflow when generating reports in languages with different character sets, specifically Chinese characters. Here are a few suggestions that may help: Check the font: Make sure that the font you're using supports the characters you need for the specific language. Some fonts may not have certain characters, which can cause formatting issues. Use auto-fit: Pptxgenjs has an option to automatically adjust the font size to fit the text within a cell. You can try using this option to prevent text overflow. You can find more information on how to use it in the pptxgenjs documentation. Consider using a different library: While pptxgenjs is a popular library for generating PowerPoint reports, there are other libraries available that may better support multi-language reports. Some alternatives to consider include pptx.js, officegen, and docxtemplater. Consider using a different format: If generating reports in different languages is a major requirement for your application, you may want to consider using a different format for your reports, such as HTML or PDF. These formats may provide more flexibility in terms of formatting and support for multi-language text. Overall, it may take some trial and error to find the best solution for your specific use case. Good luck! |
Beta Was this translation helpful? Give feedback.
-
I'm currently using pptxgenjs in my Vue.js application to generate reports that support multiple languages. The reports are generated successfully in English, but when generating reports in other languages like Chinese, the Zinpro FirstStep - races tracks_3-10 17-30-9.pptx option in pptxgenjs doesn't work as expected and the tables overflow from the page.
I've tried adjusting the font size, row height, and column width of the table to accommodate the text in Chinese characters, but the issue persists. I'm looking for a solution or workaround to prevent the tables from overflowing and ensure that the reports are generated properly in all languages.
Are there any alternative solutions or best practices for preventing text overflow in multi-language reports generated using pptxgenjs in a Vue.js application? Any help or guidance would be greatly appreciated.
Zinpro FirstStep - races tracks - 3-10 17-31-25.pptx
Beta Was this translation helpful? Give feedback.
All reactions