Hi Daniele,
It is actually very very easy, and indeed very useful also on the desktop.
I have registered and implemented #2976 (you may need to clear your browser
cache):
https://github.com/jOOQ/jOOQ/issues/2976
Note, the technical term is bookmark-tree and bookmarks, not index (didn't
know this, either). That's the XSL I needed to add:
<xsl:template match="section" mode="bookmark">
<xsl:variable name="id" select="@id"/>
<fo:bookmark internal-destination="{$id}">
<!-- Hide all bookmarks except the top-level one -->
<xsl:attribute name="starting-state">
<xsl:choose>
<xsl:when test=". = /manual/section">show</xsl:when>
<xsl:otherwise>hide</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<fo:bookmark-title>
<xsl:value-of select="title" />
</fo:bookmark-title>
<xsl:apply-templates select="sections/section" mode="bookmark"/>
</fo:bookmark></xsl:template>
Gotta love XSL. It's probably my second-favourite tech right after SQL :-)
Thanks again for reporting
Cheers
Lukas
2014/1/23 Daniele Antonini <[email protected]>
> Hi Lukas,
> Yes you're right I don't mean the table of content, and yes I've seen link
> between pages.
>
> When I read other pdf on my tablet I can view index from within each page
> using a specific feature "show index".
> This is very usefull because I can move between sections with no overhead.
> With jooq pdf i must go to the index page at the beginning of book .. a
> bit frustrating for me.
>
> The missing of the index can be noticed also with other program: evince
> for example (a linux program):
> Once opened jooq pdf, press F9 to show the side bar, at top you can view a
> dropdown menĂ¹ but I can't select index item.
> When I open other pdf like
> https://github.s3.amazonaws.com/media/progit.en.pdf instead I can choose
> index.
>
> I have no idea how to enable with XSL-FO/FOP but I can easily investigate
> a bit.
> Jooq documentation, and pdf auto generation, is available on github/jooq
> source code repository?
>
> Cheers
>
> Il 22/gen/2014 15:28 "Lukas Eder" <[email protected]> ha scritto:
>
>> I suspect that by index you don't mean the table of contents, right?
>> Because that already contains links. Can you show an example of what you
>> mean? And if you know, how to do it with XSL-FO and Apache Fop?
>>
>> Cheers
>> Lukas
>>
>>
>> 2014/1/22 Daniele Antonini <[email protected]>
>>
>>> Hi Lukas,
>>>
>>> Can you add an index in pdf format, so that it can be navigated quickly
>>> even on mobile devices?
>>>
>>> Cheers
>>> Daniele
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "jOOQ User Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "jOOQ User Group" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jooq-user/F7F3KSDLjKU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.