From edfec12c6945bf841f525a96b6968bac79acbc3d Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 1 Nov 2004 15:00:43 +0000 Subject: [PATCH] Word 2003 doesn't seem to understand "fldinst { PAGE }", so using \chpgn for now. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198120 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java index 36fb914d4..44934bde1 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java @@ -75,6 +75,7 @@ public class RtfPageNumber extends RtfContainer { * @throws IOException for I/O problems */ protected void writeRtfContent() throws IOException { + /* writeGroupMark(true); writeControlWord(RTF_FIELD); writeGroupMark(true); @@ -85,6 +86,11 @@ public class RtfPageNumber extends RtfContainer { writeControlWord(RTF_FIELD_RESULT); writeGroupMark(false); writeGroupMark(false); + */ + writeGroupMark(true); + writeAttributes(attrib, RtfText.ATTR_NAMES); + writeControlWord("chpgn"); + writeGroupMark(false); } /** -- 2.39.5