ralfstuckert / pdfbox-layout

MIT License
156 stars 74 forks source link

Support of additional level 'Flow' #15

Closed Parz90 closed 7 years ago

Parz90 commented 7 years ago

I saw that pdfbox-layout has frames in a document and paragraphs in a frame. I need one more level between document and frame that can be places to specific positions.

Flows have for example Parameters like: xCoord, yCoord, width and height.

How can I do this? Is there already existing something similar?

ralfstuckert commented 7 years ago

I guess you want some kind of nested layouts, is that correct?

Parz90 commented 7 years ago

Hi ralfstuckert,

Yes, exactly. I have for example one page with several flows that I can set the position(x,y,width and height). And the flows have paragraphs inside.

And one more question, how to manually do page breaks?

Thank you for your support.

ralfstuckert commented 7 years ago

Sorry, nested layout is not possible with the current design, since layouting is done on the fly during rendering. To allow arbitrary nesting, a pre-rendering layout phase would be needed.

bdeterling commented 7 years ago

Does this mean that it's not possible to have multiple elements within a frame? For example, I would like to have multiple images in a frame or an image and some text. Basically, I just want to draw a box around multiple elements.