MaikJaek / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Previously distributed header/footer example doesn't work with recent versions #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Download "Alice in Wonderland" example with page-specific features from 
http://today.java.net/pub/a/today/2007/06/26/generating-pdfs-with-flying-saucer-
and-itext.html

2. Run the example with the latest version of the core-renderer (I used R8, 
which comes with iText 2.0.8)

3. Content of header and footer divs is only displayed on first page, even 
though they display on every page if the example is run with the versions 
available for download from that page.

What is the expected output? What do you see instead?

Expecting content of header and footer divs to display on every page, not just 
the first. Instead, the header and footer content only appear on the first page.

What version of the product are you using? On what operating system?

Works with the R7 and "paulo-155" versions of core-renderer and iText available 
from the page linked to above. Does not work with more recent versions of the 
product, specifically core-renderer R8 with iText 2.0.8.

Please provide any additional information below.

If the referenced CSS no longer works for reasons of being standards-compliant, 
is there an alternative for placing a header and footer on each page of a PDF 
document other than the one from the Alice example? I tried @page with 
@top/@bottom, but that doesn't seem to work, as is apparently confirmed by 
issue 77 (http://code.google.com/p/flying-saucer/issues/detail?id=77). Using 
the version of core-renderer provided with the article isn't really an option 
for me, as it doesn't seem to allow setting encryption for the PDF document, 
which is a requirement for me.

Original issue reported on code.google.com by wakarima...@gmail.com on 19 Apr 2011 at 7:22

GoogleCodeExporter commented 8 years ago
To be clear, I need a more complex header than can be achieved through the 
content property that's available for use with @page.

Original comment by wakarima...@gmail.com on 20 Apr 2011 at 4:13

GoogleCodeExporter commented 8 years ago
I had problems with R8 too, and can't find the R7 version for download, could 
you fix this bug plz or allow the download of previous versions?

Original comment by matheusa...@gmail.com on 19 May 2011 at 2:32

GoogleCodeExporter commented 8 years ago
R8 supports CSS3 running elements vs. the custom properties in R7.  It can do 
everything the custom properties in R7 could do and more.

Original comment by Peter.Br...@gmail.com on 19 May 2011 at 5:40