OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Background Color declared in DocBook XML not visible in PDF


With GIF it works. But the quality compared to PNG is
very poor and nothing for high quality prints :(

Regards,
Darya


--- Darya Said-Akbari <darya_akbari@yahoo.com>
schrieb:

> Yes, it seems to be a FOP problem :( because the
> background color is set in FO file but not in PDF. 
> 
> See the attached ZIP file for an example.
> 
> If there is a workaround please let me know. Because
> I
> have tons of transparent PNGs and neither want to
> change them nor change from FOP to a commercial FO
> processor.
> 
> Regards,
> Darya
> 
> --- Bob Stayton <bobs@sagehill.net> schrieb:
> 
> > I think that is a bug in FOP's handling of the
> > graphic.
> > 
> > Bob Stayton
> > Sagehill Enterprises
> > DocBook Consulting
> > bobs@sagehill.net
> > 
> > 
> > ----- Original Message ----- 
> > From: "Darya Said-Akbari" <darya_akbari@yahoo.com>
> > To: <docbook-apps@lists.oasis-open.org>
> > Sent: Sunday, September 03, 2006 11:59 AM
> > Subject: Re: [docbook-apps] Background Color
> > declared in DocBook XML not 
> > visible in PDF
> > 
> > 
> > >I did that test already. The result is that the
> > table
> > > cell get its background color but the image in
> > this
> > > table cell still shows a black background.
> > >
> > > Regards,
> > > Darya
> > >
> > > --- Bob Stayton <bobs@sagehill.net> schrieb:
> > >
> > >> In a table cell, the processing instruction
> > pseudo
> > >> attribute name is
> > >> 'bgcolor', not 'background-color'.  See if that
> > >> works, least for setting
> > >> the table cell background color.  I don't know
> if
> > it
> > >> will fix the black
> > >> color used for transparency, though.
> > >>
> > >> Bob Stayton
> > >> Sagehill Enterprises
> > >> DocBook Consulting
> > >> bobs@sagehill.net
> > >>
> > >>
> > >> ----- Original Message ----- 
> > >> From: "Darya Said-Akbari"
> > <darya_akbari@yahoo.com>
> > >> To: <docbook-apps@lists.oasis-open.org>
> > >> Sent: Thursday, August 31, 2006 2:15 AM
> > >> Subject: Re: [docbook-apps] Background Color
> > >> declared in DocBook XML not
> > >> visible in PDF
> > >>
> > >>
> > >> > 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
> > >> >
> > >> > --- bobs@sagehill.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-unsubscribe@lists.oasis-open.org
> > >> >> For additional commands, e-mail:
> > >> >> docbook-apps-help@lists.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-unsubscribe@lists.oasis-open.org
> > >> > For additional commands, e-mail:
> > >> docbook-apps-help@lists.oasis-open.org
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >
> > >
> >
>
___________________________________________________________
> > > Telefonate ohne weitere Kosten vom PC zum PC:
> > http://messenger.yahoo.de
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > docbook-apps-unsubscribe@lists.oasis-open.org
> > > For additional commands, e-mail:
> > docbook-apps-help@lists.oasis-open.org
> > >
> > >
> > > 
> > 
> 
=== message truncated ===>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
docbook-apps-help@lists.oasis-open.org



	

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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]