Image size too large

2008-05-23 Thread Preuss, Jacqueline - ENCOWAY
Hi!

 

We have a problem with images and fop (0.93). In case that an image
can't be found our (own) FOPURIResolver writes an one-pixel GIF instead.
But in the pdf-file there is now much more space reserved for that GIF
as expected. 

 

Example if the image was found

 

image

a line

some text

 

Example if no image was found and we send a onepixel GIF:

 

image

[SPACE]

[SPACE]

[SPACE]

[SPACE]

[SPACE]

[SPACE] 

a line

some text

 

How can that happen? We generate the following XML for that image:

 

fo:table-cell display-align=before text-align=end

   fo:block font-size=0pt

fo:external-graphic src=url(test.gif)

content-width=8cm /

   /fo:block

/fo:table-cell

 

Is there a problem with the content-width?

 

Regards,

Jacqueline.

 

 

 



RE: TIFF generation using FOP .094

2008-05-23 Thread Mike Scott
I'm using fop from command line - can anyone tell me how to configure a tiff
renderer for fop. I've been looking at tiffrenderer class but haven't found
anything except calling from servlet (I'm using vb.net).

Thanks

Mike

-Original Message-
From: Mike Scott [mailto:[EMAIL PROTECTED] 
Sent: 21 May 2008 21:57
To: fop-users@xmlgraphics.apache.org
Subject: RE: TIFF generation using FOP .094

Andre,
Thanks for info. I'm using from command line but I get error:

SEVERE: Exception
org.apache.fop.apps.FOPException: Renderer has not been set!

Is there somewhere I need to specify a renderer?

Thanks

Mike

-Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: 21 May 2008 21:24
To: fop-users@xmlgraphics.apache.org
Subject: Re: TIFF generation using FOP .094

On May 21, 2008, at 19:14, Jawaby wrote:


 Hi, Can you give me some guidance on how to go about configuring  
 FOP to
 generate TIFF files instead of PDF.

If you use the command-line, the following are possible:

fop -fo input.fo -tiff output.tiff
fop -fo input.fo -out image/tiff output.tiff

If you use FOP embedded, you need something like:
...
Fop fop = fopFactory.newFop(MimeConstants.MIME_TIFF, out);
...

Note that the output may differ between the two formats (PDF vs.  
TIFF), since they use different font-metrics.


HTH!

Cheers

Andreas

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

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.21/1457 - Release Date: 20/05/2008
16:45
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.21/1457 - Release Date: 20/05/2008
16:45
 



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

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.21/1457 - Release Date: 20/05/2008
16:45
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.24.0/1461 - Release Date: 22/05/2008
16:44
 



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



RE: FOP .94 Fonts

2008-05-23 Thread _zachary_

Thank you so much, this has been a great help;

Pascal Sancho wrote:
 
 Hi,
 
 -Message d'origine-
 De : _zachary_ [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 22 mai 2008 17:32
 
 Ok I did that and it seems to work.  Is there anyway that I 
 can disable this
 cache?
 
 Yes, by setting use-cache option to 'false' (see [1]) 
 Note that you can change the path of the cache file using the cache-file
 option.
 [1]
 http://xmlgraphics.apache.org/fop/0.94/configuration.html#general-elements
 
 Pascal Sancho wrote:
  
  Hi,
  
  -Message d'origine-
  De : zachary Dains [mailto:[EMAIL PROTECTED] 
  Envoyé : jeudi 22 mai 2008 00:49
  
  I have set up some font metrics for my own custom TrueType 
  font and trying to
  get fop to read it.  As soon as I specify a config file via 
  -c I get this
  error when I try and render a pdf.
  
  SEVERE: Exception java.io.FileNotFoundException:
  /var/www/.fop/fop-fonts.cache
  
  NOTE: I am using the example fop.xconf file as my config 
 without any
  changes, however this issue still occurs even when I put my 
  own changes in
  the file.  Any ideas?
  
  FOP 0.9x create a cache file to store some fonts data.
  Perhaps your appli has not write access to  
 /var/www/.fop/fop-fonts.cache
  
  Pascal
 
 HTH,
 Pascal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/FOP-.94-Fonts-tp17386501p17427921.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Fop.94 MathML Fonts Not Changing

2008-05-23 Thread _zachary_

I have set up my conf file for fop and use it via the -c option.  I have
specified my custom font in the pdf renderer, and the font does not seem to
change my MathML instream-objects?  Am I doing something wrong, or does fop
not change the font of my MathML stuff?

my conf file

?xml version=1.0?
!-- NOTE: This is the version of the configuration --
fop version=1.0
base.//base
font-basefonts/font-base
source-resolution72/source-resolution
target-resolution72/target-resolution
use-cachetrue/use-cache
cache-filecache/fop.cache/cache-file
renderers
renderer mime=application/pdf
filterList
valueflate/value
/filterList
fonts

font-triplet name=DejaVu
style=normal weight=normal/


font-triplet name=DejaVu
style=normal weight=bold/


font-triplet name=DejaVu
style=italic weight=bold/


font-triplet name=DejaVu
style=italic weight=normal/

/fonts
/renderer
renderer mime=image/svg+xml
format type=paginated/
link value=true/
strokeText value=false/
/renderer
renderer mime=application/awt

/renderer
renderer mime=image/png
   
!--transparent-page-backgroundtrue/transparent-page-background--
/renderer
renderer mime=image/tiff
   
!--transparent-page-backgroundtrue/transparent-page-background--
!--compressionCCITT T.6/compression--
/renderer
renderer mime=text/xml

/renderer
renderer mime=text/plain
pageSize columns=80/
/renderer
/renderers
/fop

sample file

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:m=http://www.w3.org/1998/Math/MathML; font-family=DejaVu
font-size=16pt
fo:layout-master-set
fo:simple-page-master master-name=only
fo:region-body region-name=xsl-region-body margin=0.7in/
fo:region-before region-name=xsl-region-before extent=0.7in
display-align=before/
fo:region-after region-name=xsl-region-after
display-align=after extent=0.7in/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=only
fo:flow flow-name=xsl-region-body
fo:block
A sample equation:
fo:instream-foreign-object
m:math
m:mrow
  m:mrow
m:mo(/m:mo
m:mrow
  m:mn6/m:mn
  m:msup

m:miy/m:mi
m:mn3/m:mn
  /m:msup
  m:mo+/m:mo
  m:mn2/m:mn
  m:msup
m:miy/m:mi

m:mn2/m:mn
  /m:msup
  m:mo#8722;/m:mo
  m:miy/m:mi
  m:mo#8722;/m:mo
  m:mn12/m:mn

/m:mrow
m:mo)/m:mo
  /m:mrow
/m:mrow
  /m:math
  /fo:instream-foreign-object
/fo:block
/fo:flow
/fo:page-sequence
/fo:root



NOTE: That the font size of the mathml does not change either.  Is this
supposed to happen?
-- 
View this message in context: 
http://www.nabble.com/Fop.94-MathML-Fonts-Not-Changing-tp17430134p17430134.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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