Return-Path: Delivered-To: apmail-xml-fop-user-archive@www.apache.org Received: (qmail 85092 invoked from network); 8 Mar 2004 14:59:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Mar 2004 14:59:59 -0000 Received: (qmail 53455 invoked by uid 500); 8 Mar 2004 14:59:51 -0000 Delivered-To: apmail-xml-fop-user-archive@xml.apache.org Received: (qmail 53143 invoked by uid 500); 8 Mar 2004 14:59:50 -0000 Mailing-List: contact fop-user-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: fop-user@xml.apache.org Delivered-To: mailing list fop-user@xml.apache.org Received: (qmail 53130 invoked from network); 8 Mar 2004 14:59:49 -0000 Received: from unknown (HELO mail.medata.com) (65.104.121.53) by daedalus.apache.org with SMTP; 8 Mar 2004 14:59:49 -0000 Received: from [172.24.2.18] (proc012 [172.24.2.18] (may be forged)) (authenticated bits=0) by mail.medata.com (8.12.8/8.12.8) with ESMTP id i28Exn1X019629 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 8 Mar 2004 06:59:49 -0800 Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <404C4201.5020207@hotmail.com> References: <404C4201.5020207@hotmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3E7257CB-7111-11D8-87F7-000393448246@medata.com> Content-Transfer-Encoding: 7bit X-Image-Url: http://homepage.mac.com/webmaestro/.cv/thumbs/me.thumbnail From: Clay Leeds Subject: Re: Image size Date: Mon, 8 Mar 2004 06:59:48 -0800 To: fop-user@xml.apache.org X-Mailer: Apple Mail (2.612) X-Virus-Scanned: clamd / ClamAV version 0.67, clamav-milter version 0.66n X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mar 8, 2004, at 1:50 AM, Chris Bowditch wrote: > Muthukumar Rajaram wrote: >> I am generating a graph dynamically and placing it in the PDF by >> construcing the fo file with the help of the tag "external-graphic". >> The image is generated dynamically and the width and height varies. >> In the >> width and height attributes, i am not able to give the exact value >> due to >> this reason. >> Any input in this... > > You dont actually state what your problem is. It isnt mandatory to > specify width and height on external-graphic. However, without width > and height specified FOP outputs the image at 72dpi. I guess your > problem is the quality of the image is very poor. > > There isnt a workaround in general. > > Chris The workaround for me (with regard to the 72dpi image problem) has been to create a JPG with a resolution of 300dpi (note: large file size), and then scale the image down if necessary. This produces high resolution logos for placement in our FOP-rendered pages without pixelation. Probably the most important thing to remember about adding external-graphics to FOP-rendered pages is this: IIRC, FOP has a bug in it causing it to go into an infinite loop, if the graphic is too large to fit on a page. Good luck! Web Maestro Clay --------------------------------------------------------------------- To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org For additional commands, e-mail: fop-user-help@xml.apache.org