TPPDF icon indicating copy to clipboard operation
TPPDF copied to clipboard

PDFSection - allow PDFSectionColumns to have equal heights

Open grantespo opened this issue 3 years ago • 1 comments

I have a PDFSection with 3 columns. Each PDFSectionColumn contains a PDFTable where the height is dynamic.

Problem: columns have different heights (based on their respective content)

Solution: ability to set config to force each column to have equal height: e.g.: pdfSection.equalColumnHeights = true

Maybe there is a simpler alternative that I'm missing. Hard to know what to do since a lot of the docs are missing description, majority of classes just says TODO

overall, amazing library though. Thanks!

grantespo avatar Apr 13 '21 18:04 grantespo

Hi @grantespo, thanks for opening up the issue.

About the docs: Yes, you are right, they definitely lack on completeness, due to me working mostly alone on it (except for the amazing contributors)

Is the usage documentation any help?

I like your solution with the equalColumnHeights but it isn't this easy (is it ever? 😄) How would the content of each section be affected? When using tables we can increase the padding around cell content and cell borders, but how about all the other data types? Should an image be stretched, etc.?

From a quick look at the problem space, I believe this won't be trivial to implement.

philprime avatar Apr 14 '21 08:04 philprime