I was curious and tried your code. Look like the drawImage method in
question isn't implemented in PDFGraphics2D.java.

I modified your code and got a image in PDF when I did the following:

        while(!PDFGenerator1.drawImage(img, 400, 300, panel)) {
            Thread.sleep(200);
        }

Not in the right place and with the right size, but the image
nonetheless. Looks like Graphics2D.java still needs a little work.

Also, maybe using System.out to create PDFs using FOP may not be the
best idea because there are still some System.out.println statements
scattered around the codebase.

Maybe that helps.

On 27.03.2003 00:49:11 jcplerm wrote:
> I am sending attached to this message a small test case that should
> reproduce the problem.
> I am loading the image with "Toolkit.getDefaultToolkit().getImage" and then
> I pass that image to the "drawImage" method, along with "new Panel()" as an
> observer.
> 
> By running "java TestPDFGen>x.pdf" I get only a single square on the page,
> without the image.
> 
> I would be very grateful if you could take a look into this and see what I
> am doing wrong.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to