Hello there,

I need to write a text in a PDF and embed the used font.

How can I embed the used font using iTextSharp?

Here is my sourcecode. In my example I need to embed the font "Calibri".

We need this because the output goes to the print office and the machines there 
need an embedded font to print the pdf in the right way.

canvas = stamper.GetOverContent(1);
iTextSharp.text.Font f = FontFactory.GetFont("Calibri", "", true, 13);
ColumnText ct = new ColumnText(canvas);
ct.SetSimpleColumn(new Phrase("2122-222", f), 75, 242, 140, 262, 15, 
Element.ALIGN_LEFT);
ct.Go();

If we open the PDF from the sample above with Adobe Photoshop the software told 
me that the font is not embedded.

Thank you in advanced and best regards,
Michel Reischl
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to