ralfstuckert / pdfbox-layout

MIT License
155 stars 74 forks source link

Possible to set the column width #72

Open leolux opened 5 years ago

leolux commented 5 years ago

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?

johnvanweel commented 5 years ago

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: https://github.com/ralfstuckert/pdfbox-layout/issues/70#issuecomment-461741854

We are now looking at a different library.

arnthom commented 5 years ago

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.