Re: PDF boomarks not created due to location?

2003-03-13 Thread Philip Semanchuk
On Wed, 2003-03-12 at 15:24, J.Pietschmann wrote:
 Philip Semanchuk wrote:
  Thank you very much Jeremias. The documentation that I have not been
  able to find is something that states whether this feature is WAD
  (working as designed) or if it is just a known quirk/bug. If patches are
  welcome then I guess it is the latter. =)
 
 I believe when bookmars were introduced it didn't matter where they
 were declared in the FO document. With 0.20.1 or so streaming
 rendering was introduced in order to reduce memory consumption,
 and since then it matters. Bookmarks are regarded a root extension
 and will be 'rendered' when the end tag of the first page sequence
 is encountered. This means bookmarks must be completely declared
 *before* the first page sequence, or they'll just be dropped. I'm
 sure this is an unintended consequence, but one which bothers me
 *much* less than others.

This makes sense to me. I don't find the restriction onerous either, I
just want to document it. Thanks for the background information.

Philip




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PDF boomarks not created due to location?

2003-03-12 Thread J.Pietschmann
Philip Semanchuk wrote:
Thank you very much Jeremias. The documentation that I have not been
able to find is something that states whether this feature is WAD
(working as designed) or if it is just a known quirk/bug. If patches are
welcome then I guess it is the latter. =)
I believe when bookmars were introduced it didn't matter where they
were declared in the FO document. With 0.20.1 or so streaming
rendering was introduced in order to reduce memory consumption,
and since then it matters. Bookmarks are regarded a root extension
and will be 'rendered' when the end tag of the first page sequence
is encountered. This means bookmarks must be completely declared
*before* the first page sequence, or they'll just be dropped. I'm
sure this is an unintended consequence, but one which bothers me
*much* less than others.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PDF boomarks not created due to location?

2003-03-11 Thread Jeremias Maerki
The outline extension is documented here:
http://xml.apache.org/fop/extensions.html

The original file where this is documented is the file
xml-fop/src/documentation/content/xdocs/extensions.xml
(trunk in CVS).

You're invited to provide a patch. Documentation on the XML format used
for documentation is available at http://xml.apache.org/forrest

On 11.03.2003 00:30:49 Philip Semanchuk wrote:
 Thanks J. I haven't been able to find any information on this. Is it a
 feature? Bug? Documented anywhere? It is easy to work around the problem
 but I want to document this for the programmer who takes over this
 project after me.
 
 Thank you 
 Philip
 
 On Mon, 2003-03-10 at 18:20, J.Pietschmann wrote:
  Philip Semanchuk wrote:
   I have a problem with FOP extension for PDF bookmarks. It seems that FOP
   will not generate bookmarks in the PDF if the fox:outline elements
   come after a page-sequence element.
  
  That's correct: since around 0.20.1 bookmarks are only
  rendered correctly if they preceed the first fo:page-sequence.


Jeremias Maerki

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PDF boomarks not created due to location?

2003-03-11 Thread Philip Semanchuk
Thank you very much Jeremias. The documentation that I have not been
able to find is something that states whether this feature is WAD
(working as designed) or if it is just a known quirk/bug. If patches are
welcome then I guess it is the latter. =)

Thanks again
Philip

On Tue, 2003-03-11 at 04:43, Jeremias Maerki wrote:
 The outline extension is documented here:
 http://xml.apache.org/fop/extensions.html
 
 The original file where this is documented is the file
 xml-fop/src/documentation/content/xdocs/extensions.xml
 (trunk in CVS).
 
 You're invited to provide a patch. Documentation on the XML format used
 for documentation is available at http://xml.apache.org/forrest
 
 On 11.03.2003 00:30:49 Philip Semanchuk wrote:
  Thanks J. I haven't been able to find any information on this. Is it a
  feature? Bug? Documented anywhere? It is easy to work around the problem
  but I want to document this for the programmer who takes over this
  project after me.
  
  Thank you 
  Philip
  
  On Mon, 2003-03-10 at 18:20, J.Pietschmann wrote:
   Philip Semanchuk wrote:
I have a problem with FOP extension for PDF bookmarks. It seems that FOP
will not generate bookmarks in the PDF if the fox:outline elements
come after a page-sequence element.
   
   That's correct: since around 0.20.1 bookmarks are only
   rendered correctly if they preceed the first fo:page-sequence.
 
 
 Jeremias Maerki
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PDF boomarks not created due to location?

2003-03-10 Thread Philip Semanchuk
Hi all,
I have a problem with FOP extension for PDF bookmarks. It seems that FOP
will not generate bookmarks in the PDF if the fox:outline elements
come after a page-sequence element.  Has anyone else had this
experience? According to the help the outline elements need only be
children of the root and there are no restrictions on their location in
the file. 

A sample file is below that demonstrates an outline placement that
prevents the bookmark from being created.

Thanks
Philip

?xml version=1.0 encoding=utf-8?

fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'
xmlns:fox='http://xml.apache.org/fop/extensions'
  fo:layout-master-set
fo:simple-page-master page-width='215.9mm' page-height='279mm'
master-name='my-page'
  fo:region-body margin='25mm' /
/fo:simple-page-master
  /fo:layout-master-set

  !-- The bookmark is created when the outline fragment is immediately
below this line --
  
  fo:page-sequence master-reference=my-page
fo:flow flow-name=xsl-region-body
  fo:block id=fooThis sample file demonstrates a problem(?) with
the FOP PDF bookmarks standard extension.
  Bookmarks are created when the outline elements come before a
page-sequence element but they're 
  ignored when placed after a page-sequence element despite the fact
that they're children of root 
  in both cases.
  /fo:block
/fo:flow
  /fo:page-sequence

  !-- The bookmark is NOT created when the outline fragment is
immediately below this line --
  fox:outline internal-destination=foo
fox:labelRead about foo!/fox:label
  /fox:outline

/fo:root


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PDF boomarks not created due to location?

2003-03-10 Thread J.Pietschmann
Philip Semanchuk wrote:
I have a problem with FOP extension for PDF bookmarks. It seems that FOP
will not generate bookmarks in the PDF if the fox:outline elements
come after a page-sequence element.
That's correct: since around 0.20.1 bookmarks are only
rendered correctly if they preceed the first fo:page-sequence.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PDF boomarks not created due to location?

2003-03-10 Thread Philip Semanchuk
Thanks J. I haven't been able to find any information on this. Is it a
feature? Bug? Documented anywhere? It is easy to work around the problem
but I want to document this for the programmer who takes over this
project after me.

Thank you 
Philip

On Mon, 2003-03-10 at 18:20, J.Pietschmann wrote:
 Philip Semanchuk wrote:
  I have a problem with FOP extension for PDF bookmarks. It seems that FOP
  will not generate bookmarks in the PDF if the fox:outline elements
  come after a page-sequence element.
 
 That's correct: since around 0.20.1 bookmarks are only
 rendered correctly if they preceed the first fo:page-sequence.
 
 J.Pietschmann
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]