Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4290989

JEditorPane is not rendering headers and footers for RTF.

XMLWordPrintable

      JEditorPane is not rendering headers and footers at all. The following file will demonstrate this. To see how it should render, open it in StarOffice.

      -----------------------------------------------------

      {\rtf1\ansi\deff0
      {\fonttbl{\f0\froman\fprq2 Times New Roman;}}
      {\colortbl\red0\green0\blue0;\red255\green255\blue255;\red128\green128\blue128;}
      {\stylesheet{\s1\snext1 Standard;}
      {\s2\tqc\tx3168\tqr\tx6336\sbasedon1\snext2 Header;}
      {\s3\tqc\tx3168\tqr\tx6336\sbasedon1\snext3 Footer;}
      }
      {\info{\creatim\yr1999\mo11\dy9\hr14\min37}{\revtim\yr1601\mo1\dy1\hr0\min0}{\printim\yr1601\mo1\dy1\hr0\min0}{\comment StarWriter}{\vern5170}}\deftab720
      {\*\pgdsctbl
      {\pgdsc0\pgdscuse195\pgwsxn6336\pghsxn6768\headery0{\*\headeryb283\headerxl0\headerxr0}{\header \pard\plain \s2\tqc\tx3168\tqr\tx6336 This is a standard header
      \par }
      \footery0{\*\footeryt283\footerxl0\footerxr0}{\footer \pard\plain \s3\tqc\tx3168\tqr\tx6336 This is a standard footer
      \par }
      \pgdscnxt0 Standard;}}
      \paperh6768\paperw6336\margl0\margr0\margt0\margb0\sectd\sbknone\pgwsxn6336\pghsxn6768\headery0{\header \pard\plain \s2\tqc\tx3168\tqr\tx6336 This is a standard header
      \par }
      \footery0{\footer \pard\plain \s3\tqc\tx3168\tqr\tx6336 This is a standard footer
      \par }
      \ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
      \pard\plain \s1\ul\b Header And Footer Test
      \par
      \par \pard\plain \s1\ulnone Expected Results: You should be able to see the header at the top of the page and the footer at the bottom.
      \par }

      -----------------------------------------------------

      edmund.lou@eng 1999-11-12

            idk Igor Kushnirskiy (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: