[iText-questions] [SPAM] Re: Why my itextsharp creat pdf file very large?

2012-11-27 Thread mkl
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

[iText-questions] [SPAM] Re: Why my itextsharp creat pdf file very large?

2012-11-27 Thread mkl
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

Re: [iText-questions] [SPAM] Re: Why my itextsharp creat pdf file very large?

2012-11-27 Thread Paulo Soares
As the font is being used in the context of a form it is not being subset because you may need to fill the form later and all the font must be available. The form is being flattened at the end so the best way to deal with this is to get the field locations, delete the fields, and use ColumnText to

[iText-questions] [SPAM] Re: Why my itextsharp creat pdf file very large?

2012-11-27 Thread mkl
youyi1997 wrote Could sent the iText in Action to me? iText in Action, 2nd edition http://www.manning.com/lowagie2/ -- View this message in context: http://itext-general.2136553.n4.nabble.com/Why-my-itextsharp-creat-pdf-file-very-large-tp4656998p4657007.html Sent from the iText - General