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 Daling Xu <da...@yahoo.com> on 2007/11/30 08:03:07 UTC

let multiple bookmark refer to same section in the pdf

Hi,
   
  I am using FOP 0.94 to generate PDF file.
   
  In my PDF, I would like to create a bookmark tree to referring to blocks in my PDF body, when each of the book mark is pointing to a unique destination id, every thing is fine. But when there are mult bookmarks point to the same destination id, the code throw exception of 'Unresolvable bookmark' and the PDF generated only show ONE book mark item in the book mark tree.   I even tested by modifing the sample comes from the FOP, it behaves the same. Is there any way to solve this issue?
   
  Thanks
   
  Linda
   
  P.S.  You can modify the pdfoutline.fo from FOP examples to experiment this:
   
  <fo:bookmark-tree>
        <fo:bookmark internal-destination="sec1">
            <fo:bookmark-title>What is FOP?</fo:bookmark-title>
        </fo:bookmark>
  <!-- Purposely make bookmarks point to same destination -->
        <fo:bookmark internal-destination="sec1">
            <fo:bookmark-title>Downloading FOP</fo:bookmark-title>
        </fo:bookmark>
        <fo:bookmark internal-destination="sec1">

       
---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

Re: let multiple bookmark refer to same section in the pdf

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Now fixed in FOP Trunk:
http://svn.apache.org/viewvc?rev=599746&view=rev

On 30.11.2007 09:12:52 Jeremias Maerki wrote:
> That's a known problem which unfortunately doesn't seem to have been
> fixed, yet:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37993
> 
> On 30.11.2007 08:03:07 Daling Xu wrote:
> > Hi,
> >    
> >   I am using FOP 0.94 to generate PDF file.
> >    
> >   In my PDF, I would like to create a bookmark tree to referring to
> > blocks in my PDF body, when each of the book mark is pointing to a
> > unique destination id, every thing is fine. But when there are mult
> > bookmarks point to the same destination id, the code throw exception of
> > 'Unresolvable bookmark' and the PDF generated only show ONE book mark
> > item in the book mark tree.   I even tested by modifing the sample
> > comes from the FOP, it behaves the same. Is there any way to solve this issue?
> >    
> >   Thanks
> >    
> >   Linda
> >    
> >   P.S.  You can modify the pdfoutline.fo from FOP examples to experiment this:
> >    
> >   <fo:bookmark-tree>
> >         <fo:bookmark internal-destination="sec1">
> >             <fo:bookmark-title>What is FOP?</fo:bookmark-title>
> >         </fo:bookmark>
> >   <!-- Purposely make bookmarks point to same destination -->
> >         <fo:bookmark internal-destination="sec1">
> >             <fo:bookmark-title>Downloading FOP</fo:bookmark-title>
> >         </fo:bookmark>
> >         <fo:bookmark internal-destination="sec1">
> > 
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 




Jeremias Maerki


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


Re: let multiple bookmark refer to same section in the pdf

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
That's a known problem which unfortunately doesn't seem to have been
fixed, yet:
http://issues.apache.org/bugzilla/show_bug.cgi?id=37993

On 30.11.2007 08:03:07 Daling Xu wrote:
> Hi,
>    
>   I am using FOP 0.94 to generate PDF file.
>    
>   In my PDF, I would like to create a bookmark tree to referring to
> blocks in my PDF body, when each of the book mark is pointing to a
> unique destination id, every thing is fine. But when there are mult
> bookmarks point to the same destination id, the code throw exception of
> 'Unresolvable bookmark' and the PDF generated only show ONE book mark
> item in the book mark tree.   I even tested by modifing the sample
> comes from the FOP, it behaves the same. Is there any way to solve this issue?
>    
>   Thanks
>    
>   Linda
>    
>   P.S.  You can modify the pdfoutline.fo from FOP examples to experiment this:
>    
>   <fo:bookmark-tree>
>         <fo:bookmark internal-destination="sec1">
>             <fo:bookmark-title>What is FOP?</fo:bookmark-title>
>         </fo:bookmark>
>   <!-- Purposely make bookmarks point to same destination -->
>         <fo:bookmark internal-destination="sec1">
>             <fo:bookmark-title>Downloading FOP</fo:bookmark-title>
>         </fo:bookmark>
>         <fo:bookmark internal-destination="sec1">
> 



Jeremias Maerki


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