youyi1997,

youyi1997 wrote
> getFont().... as below 
> 
>     private BaseFont getFont()
>     {
>         BaseFont font =
> BaseFont.CreateFont(@"c:\WINDOWS\Fonts\simsun.ttc,1", BaseFont.IDENTITY_H,
> BaseFont.NOT_EMBEDDED);
>         return font;   //   Return the base font to create the pdf
> document
>     }
> 
> Please kindly help, and this problem trouble me those past weeks. 
> 
> 20130004.pdf (5M)
> <http://itext-general.2136553.n4.nabble.com/attachment/4657002/0/20130004.pdf>
> bmdjb2013_v2.pdf (595K)
> <http://itext-general.2136553.n4.nabble.com/attachment/4657002/1/bmdjb2013_v2.pdf>

Your simsun font seems to take up some 3.5 MB of your file.

BaseFont.NOT_EMBEDDED is ignored as documented: "iText will ignore the
embedded parameter and always embed a subset of the font if you use the
encoding IDENTITY_H or IDENTITY_V." (iText in Action, 2nd edition, page 354)

There still is the question why so much of it is embedded. Maybe someone
else can help on that topic.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Why-my-itextsharp-creat-pdf-file-very-large-tp4656998p4657004.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
iText-questions mailing list
[email protected]
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