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
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
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
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