Dear all,

I get no output after drawString().

I've this method:
private void drawHeader(PDPageContentStream stream) throws IOException
        {
                boolean drawGroupHeader = 
this.report.getBetisKey().toUpperCase().equals(BETIS_FOR_GROUP_HEADER);
                
                if (drawGroupHeader) {
                        stream.setNonStrokingColor(Color.GRAY);
                        stream.fillRect(START_X, 
distanceFromTop(HEADER_FROM_TOP + HEADER_HEIGHT), HEADER_WIDTH, HEADER_HEIGHT);
                        stream.setNonStrokingColor(Color.WHITE);
                } else {
                        stream.setNonStrokingColor(Color.BLACK);
                }
                
                stream.beginText();
                //stream.moveTextPositionByAmount(START_X + HEADER_TEXT_OFFSET, 
distanceFromTop(HEADER_FROM_TOP + (HEADER_WIDTH / 2) + (HEADER_FONT_SIZE / 2)));
                stream.moveTextPositionByAmount(0, 0);
                stream.drawString("Test");
                stream.endText();
        }

>From another Method where I draw some other things to my stream I call this 
>method. Everything works fine when I comment out the drawString()-method. When 
>I execute my program without outcommenting, nothing is drawed after this 
>method call. That means, that I get the grey box and nothing more on my page.

What could be the reason?

BR

Reply via email to