<?xml version="1.0" encoding="UTF-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" font-size="11pt" line-height="15pt" ><fo:layout-master-set><fo:simple-page-master master-name="body" page-width="210mm" page-height="297mm" margin="18mm"><fo:region-body margin-top="14mm" margin-bottom="14mm"/><fo:region-before extent="10mm"/><fo:region-after extent="10mm"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="body"><fo:flow flow-name="xsl-region-body"><fo:block font-size="18pt" color="#2563eb" space-after="8mm">MBSKY | mbsky.com</fo:block><fo:block width="70mm">A block with <fo:inline font-weight="bold">inline emphasis</fo:inline> and a sufficiently long line that demonstrates several real line areas when rendered within a limited width.</fo:block><fo:block ><fo:instream-foreign-object><svg xmlns="http://www.w3.org/2000/svg" width="100" height="30"><rect width="100" height="30" fill="#2563eb"/><text x="8" y="21" font-family="sans-serif" font-size="16" fill="white">MBSKY</text></svg></fo:instream-foreign-object></fo:block></fo:flow></fo:page-sequence></fo:root>
本例需在 Windows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程
运行环境:Windows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3
入口文件:projects/fo-lab/fo/areas.fo
预期结果与验证条件观察提示
- inline emphasis;several real line areas
请结合实际环境逐项观察。
附件与关联工程包下载
课程关联工程包(登记关联13章) · 含当前章节或实例 · mbskycom202611a543.zip