Works for me. This code generates the attached file. Document doc = new Document(PageSize.A4);PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream("c:\\test4.pdf"));
doc.open();
FontFactory.register("c:\\downloads\\efflores.ttf");
Font font = FontFactory.getFont("Effloresce",BaseFont.WINANSI,
BaseFont.EMBEDDED);
doc.add(new Paragraph("Hello Dolly", font));
doc.close();Paulo----- Original Message ----- From: "Mac Fraser" <[EMAIL PROTECTED]>
To: <[email protected]> Sent: Saturday, May 20, 2006 2:42 PM Subject: Re: [iText-questions] Fonts not Embedding properlyOkay here is the sample file - I had to use low res images because the message list kept bouncing back the message because the pdf was too big.
Please let me know if you need any additional information from me. Mac Paulo Soares <[EMAIL PROTECTED]> wrote: It doesn't matter. Paulo----- Original Message ----- From: "Mac Fraser"
To: Sent: Saturday, May 20, 2006 12:53 PM Subject: Re: [iText-questions] Fonts not Embedding properly Do you want a compressed or non compressed version of the pdf? I'll also change the test case a little bit so it creates a smaller pdf. Mac Paulo Soares wrote: The font embedding is not lost if you save the pdf. Please post the PDF. Paulo----- Original Message ----- From: "Mac Fraser"
To:
Sent: Saturday, May 20, 2006 4:40 AM
Subject: [iText-questions] Fonts not Embedding properly
Hi,
I've been working to resolve this issue for a little while now and have
not been able to get it working.
I'm using itext 1.4 within a web application
I am loading a font using the FontFactory and registering the font like
this:
FontFactory.register("c:\\windows\\fonts\\efflores.ttf");
FontFactory.register("c:\\windows\\fonts\\efflb___.ttf");
FontFactory.register("c:\\windows\\fonts\\efflbi__.ttf");
FontFactory.register("c:\\windows\\fonts\\effli___.ttf");
font = FontFactory.getFont("Effloresce",BaseFont.WINANSI,
BaseFont.EMBEDDED);
When I generate my document on my system where I have the font loaded
(registered) the pdf displays fine with the proper font. If I save the pdf
and \open the pdf on a different system that does not have the font
installed it does not dsiplay the correct font, instead it is displaying
Helevetica as the font.
Does anyone know how I can get the font to embed and display properly?
Thanks
Mac
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
test4.pdf
Description: Adobe PDF document
