nullwriter nullwriter - 3 years ago 178
PHP Question

Putting two fo:blocks side by side

I'm creating a PDF using Fop. I have a design that involves this:
enter image description here

One "div" to the left and one to the right, a border in the middle.

My current option has been to have

<fo:block />
aligned left, but then the right side would go below the left aligned fo:blocks.

enter image description here

How can you divide xsl into two columns? I've tried using tables and they do not show in my pdf.

Answer Source

Use <fo:region-body column-count="2">. See http://www.w3.org/TR/xsl/#column-count

You'll probably find that your columns have to be the same width, however.

Use break-before="column" on your second fo:block.

It's not clear what you mean by tables not showing. I would have expected a table to work.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download