I want the text to wrap from top to bottom how the ByWords wrapping option starts the paragraph from bottom left. Kindly guide how can i start the paragraph from top left. Here is the code that i am using:
Page page = doc.getPages().get_Item(1);
TextBuilder builder = new TextBuilder(page);
TextParagraph paragraph = new TextParagraph();
paragraph.setSubsequentLinesIndent (20);
paragraph.setRectangle(new Rectangle(90, 370, 520, 950));
paragraph.setBackgroundColor(Color.getYellow());
paragraph.getFormattingOptions().setWrapMode(TextFormattingOptions.WordWrapMode.ByWords);
TextFragment fragment1 = new TextFragment(desc);
fragment1.getTextState().setFontSize (12);
paragraph.appendLine(fragment1);
builder.appendParagraph(paragraph);
image.png (29.8 KB)
I want to fit a text box in Document notes that starts from above but current code starts the text from bottom left.