iMyth / flying-saucer

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

leader('.') margins are calculated based on @page:first rules when have to be based on @page rules #255

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
  @page {
    size: A4;
    margin: 2cm;
  }

  @page :first {
    margin: 0cm; /* the line sets first page margin to zero as expected. But as a side effect it sets the margin-right of "leader(dotted)" to zero too. As a result "Table of Contents" page has referenced page numbers invisible (because the numbers go under the the global page margin) */
  }

  #toc a::after {
    content:  leader('.') target-counter(attr(href), page);
  }

Please see attached html for details and resulted pdf.

version: "org.xhtmlrenderer" % "flying-saucer-pdf" % "9.0.6"
operating system: windows7

Original issue reported on code.google.com by Tap...@gmail.com on 10 Feb 2015 at 1:12

Attachments: