2

鉴于此 template-docinfo.xml 文档:

<mediaobject role="cover">
    <imageobject><imagedata fileref="cover_page.jpeg" format="JPG"/></imageobject>
    <textobject><phrase>Template Title</phrase></textobject>
</mediaobject>

<legalnotice>
    <literallayout class="monospaced">
        Copyright 2014
    </literallayout>
</legalnotice>

这些设置将呈现带有封面的 ePub 文档:

$ a2x -f epub -d book -a docinfo -v --epubcheck template.adoc

这些设置将呈现 PDF 文档,但没有封面:

$ a2x -f pdf -d book -a docinfo -v --fop template.adoc

有没有办法呈现带有封面的 PDF 文档(即图像是文档的第一页)?

4

1 回答 1

0

I do not think that mediaobject is in the default titlepage transformation for FO, using DocBook 4x. You will have to make a custom titlepage transformation that includes the mediaobject tag.

DocBook 5.x has a cover element that might be included.

https://lists.oasis-open.org/archives/docbook-apps/200701/msg00221.html

于 2014-07-23T10:14:26.727 回答