docbook-apps

  • 1.  Pdf display control in docbook

    Posted 07-08-2020 08:05
    Hi, good morning!

    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?

    Regards Bernhard

    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    Ich darf auch auf mein neues Buch "Falter in Lenzkirch" aufmerksam machen
    (Infos bei mir)
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09





  • 2.  Re: [docbook-apps] Pdf display control in docbook

    Posted 07-08-2020 08:32
    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
    tgraham@antenna.co.jp



  • 3.  Re: [docbook-apps] Pdf display control in docbook

    Posted 07-08-2020 08:37

    Am 08.07.2020 um 10:32 schrieb Tony Graham:
    > 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.

    Unfortunately I do not use the AH formatter. I work with Oxygen xlm
    editor. Maybe anybodyelse knows how to do that.

    Thanks a lot!


    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    Ich darf auch auf mein neues Buch "Falter in Lenzkirch" aufmerksam machen
    (Infos bei mir)
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09





  • 4.  Re: [docbook-apps] Pdf display control in docbook

    Posted 07-08-2020 08:58
    On 08/07/2020 09:36, Bernhard Kleine wrote:
    > Am 08.07.2020 um 10:32 schrieb Tony Graham:
    ...
    >> If you are using AH Formatter, you can use <axf:document-info> within
    >> <fo:declarations>.  For example:
    ...
    > Unfortunately I do not use the AH formatter. I work with Oxygen xlm
    > editor. Maybe anybodyelse knows how to do that.

    I checked before my previous post, and I didn't see anything similar for
    FOP, sorry.

    Regards,


    Tony Graham.
    --
    Senior Architect
    XML Division
    Antenna House, Inc.
    ----
    Skerries, Ireland
    tgraham@antenna.co.jp