I've to print text to a PDF file. Th开发者_JAVA百科is text must not exceed a width, like a textbox where the text wraps. I'm using iText with Visual Basic .NET.
You are looking for ColumnText
in iText.
You can use ColumText and among others set the width (Java code):
ColumnText body_column = new ColumnText(writer.getDirectContent());
body_column.setSimpleColumn(1, 50, 569, 800); /// Java implementation.
You should look for VB.net implementation for Columntext.
精彩评论