Re: Add Image Behind text to AWT preview

2007-04-27 Thread Jeremias Maerki
I wonder what not working means. The attached FO files gives you some
ideas. Verified with the AWT preview of FOP 0.93. Works as expected.

On 24.04.2007 11:49:13 Harshini Madurapperuma wrote:
  
 Have you tried specifying background-image attribute on fo:region-body
 element?
 
 Yes I tried but it's not working for AWT preview.
 /Harshini
 
 
 -Original Message-
 From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 24, 2007 3:12 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Add Image Behind text to AWT preview
 
 Harshini Madurapperuma wrote:
 
  Hi all;
   
  Is there a way to add a Image behind text (a kind of background
  image) to AWT preview?
 
 Have you tried specifying background-image attribute on fo:region-body
 element?
 
 Chris


Jeremias Maerki


page-background-image.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Add Image Behind text to AWT preview

2007-04-27 Thread Jeremias Maerki
That's not a problem with background image, but with JPEG images and the
Java2DRenderer (which the AWT preview uses). This will be fixed later
this year when I can do the image library redesign. Try using a PNG
instead.

BTW, your use of the element-id attribute is illegal what XSL-FO is
concerned. You should put element-id in a different namespace. You can
then put this namespace in the ignored list (FopFactory.ignoreNamespace
()) so FOP doesn't bark at the unknown namespace.

On 27.04.2007 10:53:10 Harshini Madurapperuma wrote:
 Hi there;
 
 background-image option works when rendering a pdf file but does not works
 when rendering a awt...?? Is this corret? Is there any other way to set a
 background image to AWT preview?
 
 I tried out it in this way:
 
 fo:simple-page-master element-id=my_layout2_7 page-width=21cm
 page-height=29.7cm master-name=repeat-page margin-top=1cm
 margin-right=1cm margin-left=1.4998cm margin-bottom=1cm
 margin=1.5cm
 fo:region-body element-id=my_layout2_8 region-name=xsl-region-body
 margin-top=2cm margin-bottom=1cm/
 fo:region-before element-id=my_layout2_9 region-name=repeat-page-head
 extent=2cm/
 fo:region-after element-id=my_layout2_10 region-name=repeat-page-foot
 extent=1cm/
 /fo:simple-page-master
 
 fo:simple-page-master element-id=my_layout2_11 page-width=21cm
 page-height=29.7cm master-name=first-page margin-top=1cm
 margin-right=1cm margin-left=1.4998cm margin-bottom=1cm
 margin=1.5cm
 fo:region-body element-id=my_layout2_12 region-name=xsl-region-body
 margin-top=26.703cm margin-bottom=1cm
 background-image=url(D:\Sparx
 Work\pictures\report_designer_graphics\FNDBAS\FND_SESSION_REP\watermark.jpg)
 /
 fo:region-before element-id=my_layout2_13 region-name=first-page-head
 extent=26.703cm/
 fo:region-after element-id=my_layout2_14 region-name=repeat-page-foot
 extent=1cm/
 /fo:simple-page-master
 
 
 Also tried out in this way: 
 background-image=D:/Sparx
 Work/pictures/report_designer_graphics/FNDBAS/FND_SESSION_REP/watermark.jpg
 
 instead of 
 background-image=url(D:\Sparx
 Work\pictures\report_designer_graphics\FNDBAS\FND_SESSION_REP\watermark.jpg)
 
 
 Regards;
 Harshini
 
 
 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 27, 2007 12:48 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Add Image Behind text to AWT preview
 
 I wonder what not working means. The attached FO files gives you some
 ideas. Verified with the AWT preview of FOP 0.93. Works as expected.
 
 On 24.04.2007 11:49:13 Harshini Madurapperuma wrote:
   
  Have you tried specifying background-image attribute on 
  fo:region-body
  element?
  
  Yes I tried but it's not working for AWT preview.
  /Harshini
  
  
  -Original Message-
  From: Chris Bowditch [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 24, 2007 3:12 PM
  To: fop-users@xmlgraphics.apache.org
  Subject: Re: Add Image Behind text to AWT preview
  
  Harshini Madurapperuma wrote:
  
   Hi all;

   Is there a way to add a Image behind text (a kind of background
   image) to AWT preview?
  
  Have you tried specifying background-image attribute on fo:region-body 
  element?
  
  Chris
 
 
 Jeremias Maerki
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Jeremias Maerki


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



RE: Add Image Behind text to AWT preview

2007-04-24 Thread Harshini Madurapperuma
 
Have you tried specifying background-image attribute on fo:region-body
element?

Yes I tried but it's not working for AWT preview.
/Harshini


-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 24, 2007 3:12 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Add Image Behind text to AWT preview

Harshini Madurapperuma wrote:

 Hi all;
  
 Is there a way to add a Image behind text (a kind of background
 image) to AWT preview?

Have you tried specifying background-image attribute on fo:region-body
element?

Chris




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

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



Add Image Behind text to AWT preview

2007-04-23 Thread Harshini Madurapperuma
Hi all;
 
Is there a way to add a Image behind text (a kind of background image) to
AWT preview?
 
Thanks
/Harshini