Sorry, still not tracking on why this works on the second page but not the first.

        public void onStartPage(PdfWriter arg0, Document arg1)
        {
            if (sensitivity != null)
            {
                Phrase phrase = new Phrase(sensitivity.toUpperCase(),
                        new Font(Font.TIMES_ROMAN, 10, Font.BOLDITALIC));
                HeaderFooter hf = new HeaderFooter(phrase, false);
                hf.setAlignment(HeaderFooter.ALIGN_CENTER);
                arg1.setHeader(hf);
                arg1.setFooter(hf);
            }
        
        }

BTW, even though the document only has 2 pages, a println placed in the above code reports 3 startPage events.


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

Reply via email to