Hi.
We need to render a bunch of xhtml files with css and some images to pdf from our Java server on Linux. Currently we are using CSS2XSLFO + Apache FOP for that. But we are not satisfied with this solution for two reasons:
- output is poorly formatted
- memory consumption is not reasonable
Output from trial version of Prince I downloaded is really better and closer to browser view of original html (just what we desire). And general performance (both memory and CPU) seems to be better than FOP's.
Thus, can you please clarify these points:
- what is the best approach to create a separate rendering component used from several other components, possibly creating multiple rendering threads (stdin/stdout, randomly named files, etc)
- is it possible to embed only font glyphs for characters used in the document and not embed the whole font
- how can we specify the margins (current margins are too big and content is sometimes too squeezed)
- is proportional column width supported, e.g.
<table>
<col width="1*"/>
<col width="1.5*"/>
<col width="3*"/>
<tbody>
<tr>
We need to render a bunch of xhtml files with css and some images to pdf from our Java server on Linux. Currently we are using CSS2XSLFO + Apache FOP for that. But we are not satisfied with this solution for two reasons:
- output is poorly formatted
- memory consumption is not reasonable
Output from trial version of Prince I downloaded is really better and closer to browser view of original html (just what we desire). And general performance (both memory and CPU) seems to be better than FOP's.
Thus, can you please clarify these points:
- what is the best approach to create a separate rendering component used from several other components, possibly creating multiple rendering threads (stdin/stdout, randomly named files, etc)
- is it possible to embed only font glyphs for characters used in the document and not embed the whole font
- how can we specify the margins (current margins are too big and content is sometimes too squeezed)
- is proportional column width supported, e.g.
<table>
<col width="1*"/>
<col width="1.5*"/>
<col width="3*"/>
<tbody>
<tr>