Thanks for pointing me in the right direction. I think the itext.dtd still says the attribute as font instead of font-family in the entity font.attributes. May be I am missing something here.
I'll check it out UJAC this weekend.
Thanks, Jones.
PS:
I accidently found the iText package. For year 2004, I created 12 month personalised calendar with half-page photo and half-page month and printed (17 of them) on my inkjet printer. Thanks for making the package available. I mainly use iText for my hobby and converting some old material from paper to PDF.
From: Bruno <[EMAIL PROTECTED]> To: jones henry <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [iText-questions] XML To PDF Date: Fri, 23 Jan 2004 09:50:19 +0100
Quoting jones henry <[EMAIL PROTECTED]>:
> It seems it is not taking the "font" attribute. It always puts font="unknown".
See http://itext.sourceforge.net/src/com/lowagie/text/FontFactory.java
more in specific the method: public static Font getFont(Properties attributes)
As you can see, you have to use MarkupTags.CSS_FONTFAMILY to enter the font family,
so instead of "font", you need "font-family".
By the way, I noticed a (new?) SF project that uses iText for XML to PDF conversion:
http://ujac.sourceforge.net/
Did anybody use it yet? I didn't try it out yet, but I looked at the tag-documentation and it looked quite good. Maybe it could replace the iText XML jar in the future?
br, Bruno
_________________________________________________________________
Find high-speed �net deals � comparison-shop your local providers here. https://broadband.msn.com
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
