----- Original Message -----
Sent: Friday, December 21, 2001 12:45
PM
Subject: Re: HELP WITH FONTS
PLEASE!
Hey Gorka.
Try this before you declare the Driver. It should work
userConfigFile = new File(userConfig);
options = new
Options(userConfigFile);
Claus Nielsen
Gorka Echevarr�a <[EMAIL PROTECTED]>
02-11-2001 12:24
Please respond to
fop-dev
To: "Lista-FOP" <[EMAIL PROTECTED]>
cc:
bcc:
Subject: HELP WITH FONTS
PLEASE!
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]
--------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, email: [EMAIL PROTECTED]