【发布时间】:2013-03-17 12:34:30
【问题描述】:
我是新手,愿意使用 Apache FOP 生成 PDF,如下所述
[ Imagine A4 page has dimensions 800pt x 600pt. The top 200pt x 600 pt will
hold a image and some meta data about the entity. The space below this region
needs to contain the description, but in two-column format (like newspapers).
Sometimes description is so-big, that it spans mutiple pages. ]
我计划使用我拥有的数据创建 .fo 文件,然后使用 Apache FOP 获取 PDF。当我使用
<fo:region-body
margin-top="1cm" margin-bottom="0.25cm"
column-count="2" column-gap="0.25in"/>
:
<fo:external-graphic src="url('image.jpg')"/>
<fo:block ..... >
图像出现,但文本从页面第二列的顶部开始,位于图像的顶部。请指导我,如何设计这个布局。任何指向类似设计的指针都会很有用。谢谢大家
【问题讨论】:
标签: java xsl-fo apache-fop