I am trying to use the “Fit Text” setting on a table cell. When I call document.updateTableLayout() and save the document to PDF, the cell widths are adjusted and the text is not wrapped, but the text size is not adjusted and the table row will go off the edge of the page. While searching for something related to this I found a thread that mentioned “WORDSNET-2044” had been fixed in 10.5, we are using 13.5 so I should have this fix.
I also tried calling updatePageLayout() before and after updateTableLayout() as well as calling updateTableLayout() before and after updatePageLayout attempting to get it to format the table correctly.
Is there something I am missing?
Thanks.
I just tried this with Words 15.2.0 and I get the same results.
Hi Scott,
Thanks for your inquiry. I suggest you please use Aspose.Words for Java 15.4.0 and let us know how it goes on your side. Hope this helps you.
If you still face problem, please share following detail for investigation purposes.
As soon as you get these pieces of information to
us we’ll start our investigation into your issue.
OK, took a little longer than I expected, but here is the zip file.
AsposeCreatePDF.java - Program to create a PDF.
FitToCell.rtf - Document to convert
FitToCell_ASPOSE.pdf - PDF created from Aspose
FitToCell_WORD.pdf - PDF created from Word.
Hi Scott,
Thanks for sharing the detail. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11901. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.