It worked in a pinch (if you call 300,000 PDFs/month for a couple of years a 'pinch' ;-)).

Keep in mind that content-width & content-height are not implemented in FOP... At least not yet!

On Jan 19, 2005, at 11:58 AM, Luke Shannon wrote:
The shrinking idea is a good one. I'll give that a try.

Thanks,

Luke

----- Original Message -----
From: "The Web Maestro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 19, 2005 2:55 PM
Subject: Re: Image Resolution


Luke,

Resolution is a tough nut. You can find more info on the FOP Graphics
page[1]. A couple of patient people have done tons of testing, which
you can find in the archives from a year or two ago. The way I got high
quality was to create a 300dpi logo image that was larger than I
needed, then specified width & height attributes that required the
image shrink to fit. It's not an exact science, unfortunately.


[1]
http://xml.apache.org/fop/graphics.html

On Jan 19, 2005, at 11:50 AM, Luke Shannon wrote:

If I specify one of the dimensions of an external image should this not
ensure that the resolution used in the PDF will be the same as the
orginal?


I am trying to use a hi rez image as my header, however it looks like
it is
being written as 72dpi in the document, even though I specify the
width.

Below is my code.

The FAQ page contains the following quote:

The explanation above describes only the basic default behavior. There
are
other attributes of the fo:external-graphic element that can affect the
behavior described above.


Is there more details on this somewhere?

Thanks,

Luke


<fo:block> <fo:external-graphic src="url(file:///usr/tomcat/ac/images/topbanner/ nakheel_BL_pdf_panel.gif)" width="1125px" scaling="uniform"/> </fo:block>



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



Web Maestro Clay -- <[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/> My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet


--------------------------------------------------------------------- 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]



Web Maestro Clay -- <[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/> My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet


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



Reply via email to