Re: Pdf display control in docbook
Tony Graham <[email protected]>
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
On 08/07/2020 09:05, Bernhard Kleine wrote:
> Is there a way to control the screen display of the final PDF output: I
> would like to have the two page display opened by default and the tags
> opened. How to achieve this within the xml document?
If you are using AH Formatter, you can use <axf:document-info> within
<fo:declarations>. For example:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
...
<fo:declarations>
<axf:document-info name="document-title" value="The document title"/>
<axf:document-info name="subject" value="The document subject"/>
<axf:document-info name="author" value="The author"/>
<axf:document-info name="pagelayout" value="TwoPageRight" />
</fo:declarations>
...
See https://www.antenna.co.jp/AHF/help/v70e/ahf-ext.html#document-info
The DocBook way (which is on GitHub but I think isn't in a release yet)
is to use a 'user-axf-document-information' named template. See
https://github.com/sgmlguru/MUK-proc/blob/muk2019/xsl/muk-proceedings-db.xsl#L606-L608
and https://github.com/docbook/xslt10-stylesheets/blob/master/xsl/fo/axf.xsl
Regards,
Tony Graham.
--
Senior Architect
XML Division
Antenna House, Inc.
----
Skerries, Ireland
[email protected]