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. 

------------------ Original ------------------ 

From:  "mkl [via iText - 
General]"<[email protected]>; 
Date:  Tue, Nov 27, 2012 04:22 PM 
To:  "youyi1997"<[email protected]>; 

Subject:  Re: Why my itextsharp creat pdf file very large? 
youyi1997, 


youyi1997 wrote 
this is my code, [...]     BaseFont baseFont = this.getFont(); [...] 
template(bmdjb2013_v2.pdf 448KB) and create pdf 4.96 MB Bruno mentioned that 
the problem might be connected to the font. Thus, you might help by not hiding 
the font object generation in that getFont() method you didn't supply. 
Furthermore, supplying the template and the resulting PDF for inspection might 
help analyzing the problem very much. Regards,   Michael 



If you reply to this email, your message will be added to the discussion below: 
http://itext-general.2136553.n4.nabble.com/Why-my-itextsharp-creat-pdf-file-very-large-tp4656998p4657001.html
  
To unsubscribe from Why my itextsharp creat pdf file very large?, click here . 
NAML  


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>




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Why-my-itextsharp-creat-pdf-file-very-large-tp4656998p4657002.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