MaikJaek / flying-saucer

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

Table Of Contents implemented with target-counter returns wrong page number under some conditions. #178

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What appears to be happening is the calculation for the page number is not 
taking into account margins and or padding correctly, but this is just a guess

What steps will reproduce the problem?
1. Using the attached program from the command prompt run 
   FlyingSaucerTest.jar Input.xhtml Output-2.pdf
2. The resulting pdf has errors in the table of contents. The third entry has a 
page number of 3 and it should be 4. 

What is the expected output? What do you see instead?
    the expected output is for the correct page numbers to be visible on each line in the table of contents.

What version of the product are you using? On what operating system?
http://code.google.com/p/flying-saucer/downloads/detail?name=flyingsaucer-R8.zip
&can=2&q=
Window 7, Windows Server 2008 , Windows XP VM

Please provide any additional information below.
I have used this post 
http://markmail.org/message/jzkljtbn5dtqajq6#query:+page:1+mid:jzkljtbn5dtqajq6+
state:results as a reference for how to implement the table of contents.

Original issue reported on code.google.com by sephirot...@gmail.com on 21 Oct 2011 at 10:41

Attachments: