List Info

Thread: Background Color declared in DocBook XML not visible in PDF




Background Color declared in DocBook XML not visible in PDF
user name
2006-08-20 03:24:28
This is most likely a FOP problem. 
 
When I test your example with XEP, I see no background color
(at least with 
an opaque image).  That because the width and content-width
properties are 
set to auto when those attributes are not in the source. 
This means the 
image and its viewport are the same size, and the image will
cover the 
entire viewport and no background color is visible.

But FOP 0.20.5 doesn't support content-width properties, so
you won't see 
the effect anyway.

Is your image transparent?

You'll probably have better luck 
putting the background color on the table entry rather than
the imagedata. 
The processing instruction attribute for table cells is
bgcolor instead of 
background-color.


Bob Stayton
Sagehill Enterprises


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

Background Color declared in DocBook XML not visible in PDF
user name
2006-08-21 08:36:13
The image is transparent. Here is what I try now:

<row>
  <entry>
    <?dbhtml bgcolor="#E8E8E8"?>
    <?dbfo bgcolor="#F8F6A3"?>
    <mediaobject>
      <imageobject>
        <imagedata
fileref="png_64\annealing.png"
format="PNG" align="center"/>
      </imageobject>
    </mediaobject>
  </entry>
</row>

This make the background color for the table cell but
the image keeps a black background.

Any more hints?

Regards,
Darya

--- bobssagehill.net schrieb:

> This is most likely a FOP problem. 
>  
> When I test your example with XEP, I see no
> background color (at least with 
> an opaque image).  That because the width and
> content-width properties are 
> set to auto when those attributes are not in the
> source.  This means the 
> image and its viewport are the same size, and the
> image will cover the 
> entire viewport and no background color is visible.
> 
> But FOP 0.20.5 doesn't support content-width
> properties, so you won't see 
> the effect anyway.
> 
> Is your image transparent?
> 
> You'll probably have better luck 
> putting the background color on the table entry
> rather than the imagedata. 
> The processing instruction attribute for table cells
> is bgcolor instead of 
> background-color.
> 
> 
> Bob Stayton
> Sagehill Enterprises
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-helplists.oasis-open.org
> 
> 



		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

Background Color declared in DocBook XML not visible in PDF
user name
2006-08-21 08:36:13
The image is transparent. Here is what I try now:

<row>
  <entry>
    <?dbhtml bgcolor="#E8E8E8"?>
    <?dbfo bgcolor="#F8F6A3"?>
    <mediaobject>
      <imageobject>
        <imagedata
fileref="png_64\annealing.png"
format="PNG" align="center"/>
      </imageobject>
    </mediaobject>
  </entry>
</row>

This make the background color for the table cell but
the image keeps a black background.

Any more hints?

Regards,
Darya

--- bobssagehill.net schrieb:

> This is most likely a FOP problem. 
>  
> When I test your example with XEP, I see no
> background color (at least with 
> an opaque image).  That because the width and
> content-width properties are 
> set to auto when those attributes are not in the
> source.  This means the 
> image and its viewport are the same size, and the
> image will cover the 
> entire viewport and no background color is visible.
> 
> But FOP 0.20.5 doesn't support content-width
> properties, so you won't see 
> the effect anyway.
> 
> Is your image transparent?
> 
> You'll probably have better luck 
> putting the background color on the table entry
> rather than the imagedata. 
> The processing instruction attribute for table cells
> is bgcolor instead of 
> background-color.
> 
> 
> Bob Stayton
> Sagehill Enterprises
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-helplists.oasis-open.org
> 
> 



		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

Background Color declared in DocBook XML not visible in PDF
user name
2006-08-31 09:15:41
Hi,

whether it's inside a table cell or in common text,
all my tranparent pictures get a black background
color.

I'm not sure whether it's an FOP problem, because when
I check the .fo file after Saxon processing I can't
find any hint of <?dbfo
background-color="#F8F6A3"?>.

The problem is that I depend on tons of transparent
pictures. 

Regards,
Darya

--- bobssagehill.net schrieb:

> This is most likely a FOP problem. 
>  
> When I test your example with XEP, I see no
> background color (at least with 
> an opaque image).  That because the width and
> content-width properties are 
> set to auto when those attributes are not in the
> source.  This means the 
> image and its viewport are the same size, and the
> image will cover the 
> entire viewport and no background color is visible.
> 
> But FOP 0.20.5 doesn't support content-width
> properties, so you won't see 
> the effect anyway.
> 
> Is your image transparent?
> 
> You'll probably have better luck 
> putting the background color on the table entry
> rather than the imagedata. 
> The processing instruction attribute for table cells
> is bgcolor instead of 
> background-color.
> 
> 
> Bob Stayton
> Sagehill Enterprises
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-helplists.oasis-open.org
> 
> 



	

	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen
Yahoo! Mail: http://mail.yahoo.de

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )