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 UASanda <vk...@csc.com> on 2008/04/17 12:29:19 UTC
change FOP Text dpi and graphic dpi
Good afternoon,
My name is Vladimir Kacer. I would like use your Apache-FOP processor. I
tried to convert my '.fo' file to PDF file.
In my '.fo' file I'm using text 'width="190pt' and 'width="190px'. Both,
'pt' and 'px', has same size in PDF format because FOP is set up to 72dpi.
Default FOP settings is 72dpi (dots/pixels per inch) for Images and SVG
graphic. I would like set up to 96 dpi. I tried 2 ways:
1) Config file – I set up 96dpi to config
file(<target-resolution>96</target-resolution>) but nothing change
2) Command line – ‘java -jar fop.jar -dpi 96 -fo test1.fo -pdf test1_.pdf’
and nothing change as well
Same problem I have with text. Default Text settings is set up to 72dpi and
I need set up to 96dpi.
Can somebody help me, please.
Thank you so much for your answer.
Best regards,
Vladimir Kacer
--
View this message in context: http://www.nabble.com/change-FOP-Text-dpi-and-graphic-dpi-tp16743206p16743206.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: change FOP Text dpi and graphic dpi
Posted by Andreas Delmelle <an...@telenet.be>.
On Apr 17, 2008, at 12:29, UASanda wrote:
Hi
>
> Same problem I have with text. Default Text settings is set up to
> 72dpi and
> I need set up to 96dpi.
> Can somebody help me, please.
Depends on what version of FOP you're using.
If you're using FOP 0.95beta, then IIRC, if you set the 'source-
resolution' (*) config option, any 'px' values in the FO source will
be converted to an absolute value (pt) using that resolution.
(untested myself, but should work as described after a commit I did
over two months ago: http://svn.apache.org/viewvc?rev=617812&view=rev)
(*) see: http://xmlgraphics.apache.org/fop/0.95/
configuration.html#general-elements
Note: IIC, playing with 'source-resolution' may have unwanted side-
effects for included images.
In FOP 0.94 or earlier, this option /only/ had effect for images.
Can you try and report back if this doesn't work, so we can rectify
this?
Thanks!
HTH!
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org