我想使用 Apache fop 创建 PDF。要求是我想使用 xsl fo stylesheets 在 PDF 中创建书签。 请给我提供一个如何实现这一目标的示例。
<fo:bookmark-tree>
<fo:bookmark internal-destination="B1">
<fo:bookmark-title>Bookmark 1</fo:bookmark-title>
</fo:bookmark>
</fo:bookmark-tree>
<fo:block id="B1">
...
</fo:block>
使用 XSL 1.1 中定义的书签格式化对象。请参阅https://www.w3.org/TR/xsl11/#d0e14206
FOP 的一致性显示在 https://xmlgraphics.apache.org/fop/compliance.html#fo-object-bookmarks-section
“XSL-FO 示例集合 > PDF 功能”中的“PDF 书签 (