I was able to wrap text for column headers, however I would like to know how can wrap text for row cells.
For instance, row 1 has 13 columns, each column’s text length is less that its column width - so in this case text will appear fine, however in row 2 where couple of columns has text length which exceeds its column width they are truncated as text…(i.e. text truncated until text length is less than column’s width and it is printed as text…, i.e. with 3 dots)
I will really appreciate if you can help by providing a solution which can increase the row height of cell/column, where cell text length exceeds its column width and value is not truncated at all.
We already built a big project using dhtmlxgrid and the users are loving it, however the text wrapping in pdf columns is now becoming a major concern as pdf’s are exchanged and sent along in emails for various purposes.
I read somewhere on the forum, that PHP export to pdf version takes care of wrapping text in the columns? Is that correct? Then why not java?
Will export to pdf(java) version include this enhancement in near future?
yes, php version supports text wrapping. Unfortunately java-library for producing PDF (PDFJet) doesn’t provide some important methods for getting sizes and precalculating row height. So there is no way to do that in java for now.
I believe there should be note or some information on dhtmlxgrid pdf page that JAVA version of export to pdf does not supports text wrapping in column cells where as PHP does.
I hope you and dhtmlxgrid support should understand that there is NO USE of having a pdf if the text is truncated and not shown in the columns of pdf, this means the user has to come to webpage every time when he wants to read the description. Really frustrating.
May i please know when the fix will be ready for export to pdf java version???
I am able to export as PDF using the those libraries, which you have attached in the email. Is this wrapping the column values, for e.g. if the column value is more than 10 characters, its not wrapping, its hiding. I want to display those values with wrapping.
ranan2 - Thanks for your inputs, it did help a bit for some of my grids, however the page zoom level becomes 45%. I know we can increase it and set as we want but when I want to print the pdf, it’s divided into 4 pages, i.e. I have 15 columns then 1st page will have 1-3 columns, 2nd page - 3-6, 3rd page - 6-9 and so on…
As of now, I have decided to implement export-to-pdf grid functionality using php, i.e. by using grid-pdf-php code and now text is being wrapped in columns, however how can I implement text wrapping in column HEADERS.