PageDrawer renders page twice

2010-03-31 Thread Maruan Sahyoun
Hi,

during my debugging of PrintPDF I saw that text is printed twice e.g. all 
strings are printed by writeFont from the top of the page to the end and then 
again. Is that by design or should I start to look into why that is happening? 
An initial debugging showed that the processing already starts repeating in 
PageDrawer.processTextPosition()

Kind regards

Maruan Sahyoun


Re: PageDrawer renders page twice

2010-03-31 Thread Andreas Lehmkühler
Hi,

Betreff: PageDrawer renders page twice
Gesendet: Mi, 31. Mrz 2010
Von: Maruan Sahyounsahy...@fileaffairs.de

 Hi,
 
 during my debugging of PrintPDF I saw that text is printed twice e.g. all
 strings are printed by writeFont from the top of the page to the end and
 then again. Is that by design or should I start to look into why that is
 happening? An initial debugging showed that the processing already starts
 repeating in PageDrawer.processTextPosition()
AFAIU this is not a bug, it's a feature. The Pageable interface is used to 
print a PDDocument. The first pass is needed to precalculate some aspects of 
the document to be printed, such as the number of pages, pagesize etc. and the 
second pass is used for the real printing. So IMHO everything is ok.


BR
Andreas Lehmkühler