开发者

iText paragraph limit

开发者 https://www.devze.com 2023-03-10 18:09 出处:网络
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 iTex

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消