The following is the code am trying out. The text i want to put in to the paragraph is pretty big. And it will be dynamically created. Do i need to split the text?
Document document = new Document(PageSize.A4, 36, 36, 54, 36); try { ColumnText _column; PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("IText6.pdf", FileMode.OpenOrCreate)); writer.SetTagged(); document.Open(); PdfContentByte cb = writer.DirectContent; BaseFont bf = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); PdfStructureTreeRoot root = writer.StructureTreeRoot; _column = new ColumnText(cb); _column.SetSimpleColumn(50, 50, 400, 400); PdfStructureElement p = new PdfStructureElement(root, PdfName.P); cb.BeginMarkedContentSequence(p); cb.SetFontAndSize(bf, 10); cb.BeginText(); cb.SetTextMatrix(50, 800); cb.ShowText(@"Some of the most recognizable customers of the Adobe PDF Library are prominent Adobe products, including Adobe Acrobat, Reader®, Photoshop®, Illustrator®, InDesign®, and FrameMaker® software; Adobe LiveCycle™ server products family; the Adobe PostScript® language; and others. However, the Adobe PDF Library SDK was specifically created to support OEMs, systems integrators, independent software vendors, and enterprise IT developers who want to incorporate Adobe PDF functionality into new or existing applications and workflows. Some of the most recognizable customers of the Adobe PDF Library are prominent Adobe products, including Adobe Acrobat, Reader®, Photoshop®, Illustrator®, InDesign®, and FrameMaker® software; Adobe LiveCycle™ server products family; the Adobe PostScript® language; and others. However, the Adobe PDF Library SDK was specifically created to support OEMs, systems integrators, independent software vendors, and enterprise IT developers who want to incorporate Adobe PDF functionality into new or existing applications and workflows. Some of the most recognizable customers of the Adobe PDF Library are prominent Adobe products, including Adobe Acrobat, Reader®, Photoshop®, Illustrator®, InDesign®, and FrameMaker® software; Adobe LiveCycle™ server products family; the Adobe PostScript® language; and others. However, the Adobe PDF Library SDK was specifically created to support OEMs, systems integrators, independent software vendors, and enterprise IT developers who want to incorporate Adobe PDF functionality into new or existing applications and workflows. Some of the most recognizable customers of the Adobe PDF Library are prominent Adobe products"); cb.EndText(); cb.EndMarkedContentSequence(); _column.Go(); document.Close(); } catch (Exception de) { } -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfStructureElement-with-ColumnText-tp3023234p3023285.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions 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