Hi
I have text in a word document that i am loading with
document.LoadFromFile("Test.docx");
for example “hello world”
is it possible to change the position of that text to the
Bottom of the page?
Thanks for helping
//Normal text in a paragraph
Document document = new Document();
Section section = document.addSection();
Section section = document.getSections().get(0);
Paragraph paragraph = section.getParagraphs().get(0);
int index = section.getIndex(paragraph);
for (int i = 0; i < 54;i++){
section.getBody().getChildObjects().insert(index,new Paragraph(document
}
//In Textbox
paragraph = section.addParagraph();
TextBox textBox = paragraph.appendTextBox(300,50);
textBox.setHorizontalPosition(0);
textBox.setVerticalPosition(700);
textBox.setTextWrappingStyle(TextWrappingStyle.In_Front_Of_Text);
Paragraph para = textBox.getBody().addParagraph();
para.appendText("This is Hello Word");
// In shape
paragraph = section.addParagraph();
ShapeObject shape = paragraph.appendShape(100,50, ShapeType.Custom_Shape);
shape.setVerticalPosition(700);
shape.setTextWrappingStyle(TextWrappingStyle.In_Front_Of_Text);