Thank you.
The file doesn’t go up because of the file size.
Can I put a table in the text box? Below is the code I used.
Shape mapSectionName = new Shape(doc, ShapeType.TEXT_BOX);
Preformatted text`mapSectionName.setStroked(false);
mapSectionName.setWidth(newW);
mapSectionName.setHeight(30);
mapSectionName.setWrapType(WrapType.NONE);
mapSectionName.setFilled(false);
mapSectionName.setRelativeHorizontalPosition(RelativeHorizontalPosition.PAGE);
mapSectionName.setRelativeVerticalPosition(RelativeVerticalPosition.PAGE);
PageSetup ps = section.getPageSetup();
mapSectionName.setLeft(ps.getLeftMargin());
mapSectionName.setTop(ps.getPageHeight() - mapSectionName.getHeight() - mapSectionName.getHeight());
Paragraph para = new Paragraph(doc);
Table table = builder.startTable();
builder.insertCell();
builder.getCellFormat().setWidth(240);
builder.insertImage("https://cms.admin.containerize.com/templates/aspose/App_Themes/V3/images/aspose-logo.png");
builder.insertCell();
builder.getCellFormat().setWidth(240);
builder.insertImage("https://cms.admin.containerize.com/templates/aspose/App_Themes/V3/images/aspose-logo.png");
builder.endRow();
builder.endTable();
para.appendChild(table);
mapSectionName.appendChild(para);
section.getBody().getFirstParagraph().appendChild(mapSectionName);