ralfstuckert/pdfbox-layout

Possible to set the column width

Opened this issue · 2 comments

Currently when adding a ColumnLayout with two colums the width of each column is exactly 50% of the page. Is it possible to set the column width to 70% and 30% instead?

We tried a similar thing but could not find it in the framework. We ended up creating our own implementation of ColumnLayout that allows us to do this.

It also got me here on the issues page where I read this: #70 (comment)

We are now looking at a different library.

As I told you in the other issue, you can set the text width of a column (even wider that the column itself), but I have not found out how to set the column width.
So my workaround for 70%/30% would be to have 10 columns and set the width (pixels, not percent) of the first and the 8th and do not fill the other ones.