You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jesse Schaaf <JR...@primetherapeutics.com> on 2012/04/24 16:58:19 UTC

508 Compliancy and Book Marks

I am using Apache FOP 1.0  and have to create book marks so when the adobe 
reader opens the PDF the book marks are displayed in the left panel. I am 
using the bookmark-tree and bookmark tags but it does not seem to be 
creating any bookmark entries when I open the PDF.  I am wondering if 
there is an accessibility option I need to turn on or namespace I should 
be using? 

<!-- PDF bookmark tree starts -->

 <fo:bookmark-tree>
   <fo:bookmark internal-destination="Header">
       <fo:bookmark-title>Chapters</fo:bookmark-title>
       <xsl:for-each select="//Headernm">
            <fo:bookmark internal-destination="{generate-id(.)}">
                <fo:bookmark-title>
                        <xsl:value-of select="Headernm"/>
                </fo:bookmark-title>
            </fo:bookmark>
       </xsl:for-each>
       </fo:bookmark>
</fo:bookmark-tree>

Jesse Schaaf
Senior Systems Analyst - IT Medicare
Prime Therapeutics
tel 612.777.4319
fax 651.414..4409
jrschaaf@primetherapeutics.com

Prime Therapeutics made the following annotations
---------------------------------------------------------------------
CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.


---------------------------------------------------------------------


Re: 508 Compliancy and Book Marks

Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Jesse,

I’m not sure this is related to Section 508 compliance, it looks more
like a user preference to me. Anyway, from a quick look at the PDF
Reference I couldn’t find any setting that could be stored in the PDF to
hide the bookmarks panel. There are settings about defining the default
zoom, full screen or not, hiding the toolbar/menu bar, etc. But except
the possibility of having some hidden by default, nothing about
bookmarks.


Vincent


On 30/04/12 19:07, Jesse Schaaf wrote:
> Here is the code I am using for the book marks. We can control if the 
> chapters are minimized however we can not control the fact that the book 
> mark panel is expanded. Here is the code and below this is a screen shot 
> of how it opens. Before we started using bookmarks this panel was always 
> minimized. I am trying to figure out how I can control that so it opens 
> minimized. 
> 
> <!-- PDF bookmark tree starts -->
> 
>                         <fo:bookmark-tree>
>                                 <fo:bookmark 
> internal-destination="Chapter" starting-state="hide" >
>  <fo:bookmark-title>Chapters</fo:bookmark-title>
>                                         <xsl:for-each select="//Headernm">
>                                                 <fo:bookmark 
> internal-destination="{generate-id(.)}" starting-state="hide" >
>  <fo:bookmark-title>
>  <xsl:value-of select="."/>
>  </fo:bookmark-title>
>                                                 </fo:bookmark>
>                                         </xsl:for-each>
>                            </fo:bookmark>
>                         </fo:bookmark-tree>
> 
>                         <!-- PDF bookmark tree ends -->
> 
> 
> 
> 
> From:   Pascal Sancho <pa...@takoma.fr>
> To:     <fo...@xmlgraphics.apache.org>
> Date:   04/30/2012 06:10 AM
> Subject:        Re: 508 Compliancy and Book Marks
> 
> 
> 
> Hi Jesse,
> 
> Please, can you attach a (short) XSL-FO demonstrating the issue?
> Is there any trace in log?
> Is "Header" used as ID for a FO-element?
> did you tried the starting-state property?
> 
> <fo:bookmark internal-destination="header" starting-state="show">
> ...
> </fo:bookmark>
> 
> Le 24/04/2012 16:58, Jesse Schaaf a écrit :
>> I am using Apache FOP 1.0 and have to create book marks so when the
>> adobe reader opens the PDF the book marks are displayed in the left
>> panel. I am using the bookmark-tree and bookmark tags but it does not
>> seem to be creating any bookmark entries when I open the PDF. I am
>> wondering if there is an accessibility option I need to turn on or
>> namespace I should be using?
>>
>> <!-- PDF bookmark tree starts -->
>>
>> <fo:bookmark-tree>
>> <fo:bookmark internal-destination="Header">
>> <fo:bookmark-title>Chapters</fo:bookmark-title>
>> <xsl:for-each select="//Headernm">
>> <fo:bookmark internal-destination="{generate-id(.)}">
>> <fo:bookmark-title>
>> <xsl:value-of select="Headernm"/>
>> </fo:bookmark-title>
>> </fo:bookmark>
>> </xsl:for-each>
>> </fo:bookmark>
>> </fo:bookmark-tree>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: 508 Compliancy and Book Marks

Posted by Jesse Schaaf <JR...@primetherapeutics.com>.
Here is the code I am using for the book marks. We can control if the 
chapters are minimized however we can not control the fact that the book 
mark panel is expanded. Here is the code and below this is a screen shot 
of how it opens. Before we started using bookmarks this panel was always 
minimized. I am trying to figure out how I can control that so it opens 
minimized. 

<!-- PDF bookmark tree starts -->

                        <fo:bookmark-tree>
                                <fo:bookmark 
internal-destination="Chapter" starting-state="hide" >
 <fo:bookmark-title>Chapters</fo:bookmark-title>
                                        <xsl:for-each select="//Headernm">
                                                <fo:bookmark 
internal-destination="{generate-id(.)}" starting-state="hide" >
 <fo:bookmark-title>
 <xsl:value-of select="."/>
 </fo:bookmark-title>
                                                </fo:bookmark>
                                        </xsl:for-each>
                           </fo:bookmark>
                        </fo:bookmark-tree>

                        <!-- PDF bookmark tree ends -->




From:   Pascal Sancho <pa...@takoma.fr>
To:     <fo...@xmlgraphics.apache.org>
Date:   04/30/2012 06:10 AM
Subject:        Re: 508 Compliancy and Book Marks



Hi Jesse,

Please, can you attach a (short) XSL-FO demonstrating the issue?
Is there any trace in log?
Is "Header" used as ID for a FO-element?
did you tried the starting-state property?

<fo:bookmark internal-destination="header" starting-state="show">
...
</fo:bookmark>

Le 24/04/2012 16:58, Jesse Schaaf a écrit :
> I am using Apache FOP 1.0 and have to create book marks so when the
> adobe reader opens the PDF the book marks are displayed in the left
> panel. I am using the bookmark-tree and bookmark tags but it does not
> seem to be creating any bookmark entries when I open the PDF. I am
> wondering if there is an accessibility option I need to turn on or
> namespace I should be using?
>
> <!-- PDF bookmark tree starts -->
>
> <fo:bookmark-tree>
> <fo:bookmark internal-destination="Header">
> <fo:bookmark-title>Chapters</fo:bookmark-title>
> <xsl:for-each select="//Headernm">
> <fo:bookmark internal-destination="{generate-id(.)}">
> <fo:bookmark-title>
> <xsl:value-of select="Headernm"/>
> </fo:bookmark-title>
> </fo:bookmark>
> </xsl:for-each>
> </fo:bookmark>
> </fo:bookmark-tree>

-- 
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



Prime Therapeutics made the following annotations
---------------------------------------------------------------------
CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.


---------------------------------------------------------------------


Re: 508 Compliancy and Book Marks

Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Jesse,

Please, can you attach a (short) XSL-FO demonstrating the issue?
Is there any trace in log?
Is "Header" used as ID for a FO-element?
did you tried the starting-state property?

<fo:bookmark internal-destination="header" starting-state="show">
...
</fo:bookmark>

Le 24/04/2012 16:58, Jesse Schaaf a écrit :
> I am using Apache FOP 1.0 and have to create book marks so when the
> adobe reader opens the PDF the book marks are displayed in the left
> panel. I am using the bookmark-tree and bookmark tags but it does not
> seem to be creating any bookmark entries when I open the PDF. I am
> wondering if there is an accessibility option I need to turn on or
> namespace I should be using?
>
> <!-- PDF bookmark tree starts -->
>
> <fo:bookmark-tree>
> <fo:bookmark internal-destination="Header">
> <fo:bookmark-title>Chapters</fo:bookmark-title>
> <xsl:for-each select="//Headernm">
> <fo:bookmark internal-destination="{generate-id(.)}">
> <fo:bookmark-title>
> <xsl:value-of select="Headernm"/>
> </fo:bookmark-title>
> </fo:bookmark>
> </xsl:for-each>
> </fo:bookmark>
> </fo:bookmark-tree>

-- 
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org