xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Hollins <willholl...@btinternet.com>
Subject Re: Differences between MIME_PDF and MIME_FOP_AWT_PREVIEW
Date Fri, 07 Mar 2008 20:13:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you very much for your help, I will try this after the weekend. :)
Will

Jeremias Maerki wrote:
> Following a hunch, I've tried a work-around for the current situation
> that might help you. It is possible to run the layout using PDF's font
> metrics and then render the document using Java2D. A little test on my
> printer gave me almost (!) the same result.
> 
> The clue here is the intermediate format. Render the document to the
> intermediate format using the PDF renderer as base. Then render the
> generated intermediate file once to PDF and once to Java2D (AWT, TIFF,
> PNG, Print).
> 
> 1. Intermediate format:
> 
> fop -fo examples/fo/basic/simple.fo -at application/pdf simple.at.xml
> 
>                                         ^^^^^^^^^^^^^^^
>                                         this is important!
> 
> 2. the PDF:
> 
> fop -atin simple.at.xml -pdf simple.pdf
> 
> 3. Java2D output:
> 
> fop -atin simple.at.xml -awt
> fop -atin simple.at.xml -tiff simple.tiff
> fop -atin simple.at.xml -print
> 
> More info on the intermediate format:
> http://xmlgraphics.apache.org/fop/trunk/intermediate.html
> 
> Maybe that helps.
> 
> On 06.03.2008 05:02:31 Will Hollins wrote:
>> I have run fop on the same input with both the pdf and awt renderers and
>> get different results with both.
>> I was just laying out very simple text that spanned multiple lines and
>> found that the sizes were different - specifically the awt renderer
>> produces smaller text, I suspect this might be a java issue? I have
>> tested with both 1.5 and 1.6 and have the same issue. I am using fop 0.94.
>> Has anyone come across this problem before?
>> Thanks,
>> Will
> 
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH0aAkEOqyLb0VeIwRAkrFAJ0VfIk9KWSnIm8Hx5epm3G77JfcYQCfYHG/
gzvDa6E2xrM9DuCUyTUFPxM=
=e+9o
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message