Hi,

I saw a message from a while back saying how to set the default font for pdf text generated from HTML with HTMLWorker: http://article.gmane.org/gmane.comp.java.lib.itext.general/14296.

It says something about registering a font in the FontFactory, but this did not help me much. All I want to use is the standard pdf Times Roman font, but all I manage to produce is Helvetica text. I looked at the source code, but could not figure out where the font used in the phrases by default is defined. Ideally I should be able to set a font family and a default font size and this would be used as the basis for the generated pdf.

It may also be possible to do this with style sheets, but I've tried everything I can think of, setting font and style on the 'body' and have not had any success with that either.

I'd appreciate any help on this one!

Thanks,

Adriaan
begin:vcard
fn:Adriaan Joubert
n:Joubert;Adriaan
org:Albourne Partners (Cyprus) Ltd
adr:;;3 D. Vikella Street;Nicosia;;1061;Cyprus
email;internet:[EMAIL PROTECTED]
tel;work:+357 22 750652
tel;fax:+357 22 750654
x-mozilla-html:FALSE
url:http://www.albourne.com
version:2.1
end:vcard

Reply via email to