ItextSharp fit text to a page
问题 i'm italian and i'm sorry for my english. I'm trying to use itextSharp to convert a txt file into pdf file. this is my code: String l = file.ReadLine() + "\r\n"; while (l != null) { iTextSharp.text.Font contentFont = iTextSharp.text.FontFactory.GetFont("Arial", 8, iTextSharp.text.Font.NORMAL); //Chunk line = new Chunk(l, contentFont); Paragraph p2 = new Paragraph(l,contentFont); oDoc.Add(p2); oDoc.Add(Chunk.NEWLINE); l = file.ReadLine(); } oDoc.Close(); The text page is a multi page file, so