ngeorga / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

background image for body is not honoured #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*** This issue was imported from http://java.net/jira/browse/XHTMLRENDERER-329

It was reported by aneesh2004 on 14.09.2010 06:20:04 +0200 and last updated in 
the previous bug tracker on 14.10.2010 18:08:17 +0200

Found in
Operating System: All
Platform: All

The priority for this issue at migration was Blocker.
The original issue had attachments to it; see comments below.

Original description: 
I have body defined in my document as
*******
<body style="background-image:url('slide_1_background.jpg');">
*****
and I have code to read this xhtml page as
*****
Graphics2DRenderer g2r = new Graphics2DRenderer();
g2r.getSharedContext().setDPI(dpi);
g2r.setDocument(s1, this.baseUrl);
g2r.layout(g, new Dimension(width, height));
g2r.render(g);
g.dispose();
*****

This gets stuck at the g2r.render(g). The call doesn't return from that line.
If I have the same image as as regular image in html things are fine. Things are
also fine when I have a body element without a backround image set for the body.

Original issue reported on code.google.com by pdoubl...@gmail.com on 16 Feb 2011 at 9:46

GoogleCodeExporter commented 8 years ago
Attachment by aneesh2004 on 14.09.2010 06:25:00 +0200:  sheet1.xml, size 379 
bytes
Download: http://java.net/jira/secure/attachment/27419/sheet1.xml

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47

GoogleCodeExporter commented 8 years ago
aneesh2004 wrote on 14.09.2010 06:25:00 +0200:
Created an attachment (id=116)
test case for bug

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47

GoogleCodeExporter commented 8 years ago
aneesh2004 wrote on 14.09.2010 06:26:12 +0200:
attached the document that I am trying to load.

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47

GoogleCodeExporter commented 8 years ago
aneesh2004 wrote on 14.10.2010 18:07:24 +0200:
this is causing the JVM to crash.

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47

GoogleCodeExporter commented 8 years ago
aneesh2004 wrote on 14.10.2010 18:08:17 +0200:
Thanks.

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47