|
Hi all,
I have a problem to generate a pdf document
from a servlet appling fonts that are not included by default in the Fop
especification.
If I execute Fop from the command line, I have no
problem at all, and it works perfectly.
I know how to especify the file "userconfig.xml" in
the command line -> "Fop -c conf/userconfig.xml", but I don�t know how to do
it
in the servlet to allow the use of diferent kinds
of font in the xsl-fo file.
My source code in the servlet looks like
this:
ByteArrayOutputStream out = new
ByteArrayOutputStream();
response.setContentType("application/pdf"); Driver driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); driver.render(input.getParser(), input.getInputSource()); byte[] content = out.toByteArray(); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); I've read the document fonts.pdf already
(thank you very much Sergei) and I have read the page http://xml.apache.org/fop/fonts.html but
i have found no solution.
Can anyboy help me please?
--------------------------------------------
Gorka Echevarr�a V�lez BILBOM�TICA, S.A. [EMAIL PROTECTED] -------------------------------------------- |
- Re: HELP WITH FONTS PLEASE! Gorka Echevarr�a
- Re: HELP WITH FONTS PLEASE! cn
- RE: HELP WITH FONTS PLEASE! Gorka Echevarr�a
