Re: Embeded Fop

2001-06-26 Thread Alex McLintock

Here is another email I got because I help do the FAQ.
Perhaps someone can answer it and CC the original questioner.

[EMAIL PROTECTED]

PS doreen please join the fop-dev mailing list and ask there.

Alex

 Originally to: alex
 Date:  Tue, 26 Jun 2001 01:07:33 + (GMT+00:00)


 Subject: [FAQ] Is there any method for me to know the width and height of a jpg file 
in fo
 i have tried to embedded a jpg file into pdf with the use 
 external-graphic and reading a element in xml as follow:

 ==
 xsl:element name=fo:external-graphic
   xsl:attribute name=src
   file:/home/newsclip/html
   xsl:apply-templates select=Graphic/
   /xsl:attribute
   xsl:attribute name=text-aligncenter/xsl:attribute
   xsl:attribute name=width50%/xsl:attribute
 /xsl:element
 ===

 however, as the size of images varies, some pdf generation will be failed for some 
images. and i
think it is the problem of the imagesthat means, the size is too big even it is 
minized to
50%, so is that any scaling method that can automatically adjusted the percentage 
required for the image?

=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION: 
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




Embeded Fop

2001-06-25 Thread Emmanuel Dupouy

Hi,

I'm using fop to generate pdf files and it works well.

But in my xsl:fo document produced I use fonts that are not contained by
default. So I produced an xml which contains the font metrics as fop manual
says. After I made an xml configuration file to complete the font
declaration of Fop.

If I use Fop from command line I can had this new configuration file with
this option :
-c resources/FOPConfig.xml

How can I do this when I Instantiate an org.apache.fop.apps.Driver.

Do I have to de-jar Fop and add the font declaration directly in config.xml
of Fop?
Or can I pass to the additional information to Fop via my java program. I
rather prefer this last solution which much more elegant.

Thanks for any help.

Emmanuel

Emmanuel DUPOUY
[EMAIL PROTECTED]
Valtech http://www.valtech.com/
Phone (33)1 41.88.23.00 Fax (33)1 41.88.23.01



= 
Ce message et toutes les pièces jointes sont propriété de VALTECH et 
susceptibles de contenir des informations confidentielles à l'intention 
exclusive de ses destinataires. Si vous avez reçu ce message par erreur 
ou si celui ci vous est parvenu incomplet ou altéré, merci d'en avertir 
l'expéditeur par retour.Toute utilisation, diffusion ou publication non 
expressément autorisée par nous par écrit est strictement interdite. 
 -- 
This message and any attachments are Valtech property and may contain 
iconfidential information intended solely for the addressees. If your are 
not the intended recipient of this message or if you have received it 
uncomplete or altered, please notify the author by replying to his e-mail 
immediately. Any unauthorised use, diffusion or dissemination not 
expressly authorised by us in writing is strictly prohibited. 
= 
Copyright Valtech 2000 



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