From ae6f9e9fd5fa83d4e4b54b8486f2a6496d1af824 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 31 Jan 2005 13:10:39 +0000 Subject: [PATCH] Added the page number to the pageViewport 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java index 94f324495..ab1e20d74 100644 --- a/src/java/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java @@ -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); -- 2.39.5