You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by ap...@free.fr on 2003/09/23 18:10:20 UTC

JPG 300dpi / background

Hello, 
I want to have an image in a background of a document and can write a block of 
text above. I use "background-image" in the "fo:region-body" definition.
The problem is that fop can't show correctly a jpg 300dpi: it is write too big 
(size x 300/72). The solution is tu use a jpg 72dpi but the impression is very 
bad.
Toine

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: JPG 300dpi / background

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Andreas L. Delmelle wrote:
> Ah, so he has to use the overlapping region-before trick?

Interesting idea, although I'd check whether changing the
resolution is a possibility first.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: JPG 300dpi / background

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> 
> Hehe, not possible for background graphics. Bitmap background
> images are always rendered at 72dpi, no way to change this.
> 

Ah, so he has to use the overlapping region-before trick?

Greetz,

Andreas Delmelle


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: JPG 300dpi / background

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Andreas L. Delmelle wrote:
> I find it curious though... Have you tried setting the content-height and
> content-width for the inserted graphic explicitly?

Hehe, not possible for background graphics. Bitmap background
images are always rendered at 72dpi, no way to change this.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: JPG 300dpi / background

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:a_l.delmelle@pandora.be]
>
> The documentation on the website, however, (
> http://xml.apache.org/fop/graphics.html#resolution ) recommends you scale
> the graphic beforehand. ( Try scaling it to 72/300 of its

Sorry, that's for SVG... Besides this, the page contains very valuable info
regarding this sort of problem.

Greetz,


Andreas Delmelle


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: JPG 300dpi / background

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: apourche@free.fr [mailto:apourche@free.fr]
>
> I want to have an image in a background of a document and can
> write a block of
> text above. I use "background-image" in the "fo:region-body" definition.
> The problem is that fop can't show correctly a jpg 300dpi: it is
> write too big
> (size x 300/72). The solution is tu use a jpg 72dpi but the
> impression is very
> bad.

1/72th of an inch is the standard point size in PDF.

I find it curious though... Have you tried setting the content-height and
content-width for the inserted graphic explicitly? I remember having the
same problem; I managed to solve it by experimenting with these attributes
on the <fo:external-graphic ...>, so be sure to try this.

The documentation on the website, however, (
http://xml.apache.org/fop/graphics.html#resolution ) recommends you scale
the graphic beforehand. ( Try scaling it to 72/300 of its original size and
then insert it as a 300dpi jpg... if it is then inserted with (size x
300/72), it will be rendered in its original size.

Hope this helps.

Greetz,


Andreas Delmelle


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org