]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added the page number to the pageViewport
authorJeremias Maerki <jeremias@apache.org>
Mon, 31 Jan 2005 13:10:39 +0000 (13:10 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 31 Jan 2005 13:10:39 +0000 (13:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198344 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/xml/XMLRenderer.java

index 94f324495effca2e9dc233fcbcad2d901dbf8660..ab1e20d74742e32305d52bc78c5bbdf40df598ab 100644 (file)
@@ -338,6 +338,7 @@ public class XMLRenderer extends AbstractRenderer {
     public void renderPage(PageViewport page) throws IOException, FOPException {
         atts.clear();
         addAttribute("bounds", page.getViewArea());
+        addAttribute("nr", page.getPageNumber());
         startElement("pageViewport", atts);
         startElement("page");
         super.renderPage(page);