phpjasperxml icon indicating copy to clipboard operation
phpjasperxml copied to clipboard

TextField's stretch property doesn't work when generating a report

Open competense opened this issue 1 year ago • 1 comments

I am using phpjasperxml in Laravel 11 and a jrxml file from Jaspersoft Studio 6.18. Things work as expected except for the stretching ability of a TextField. I need it to stretch as some of the string values for a database field are more than one line (i.e. 1-1000 characters).

I have tried many combinations in the properties, but I think it always has something to do with Position Type= Float, Stretch Type = <anything except "No stretch">, and Text Adjust = StretchHeight.

The preview of the jrxml file is working as it should, but the PDF file generated from the same jrxml file isn't.

Screenshot 2024-11-29 at 7 35 01 PM Screenshot 2024-11-29 at 7 34 13 PM

competense avatar Nov 29 '24 11:11 competense

Yes there is some difficulties on analyse text. The issue came from this project rely on tcpdf and tcpdf have own rules for single line text and multiple line text. The complexity of manage this area beyond my capability at the moment. Cause it also relates to large text content until cross page.

kstan79 avatar May 27 '25 12:05 kstan79