With Aspose.PDF for Java, you may set different Structure Elements Properties. There are setting Text Block Structure Elements, setting Inline Structure Elements, adding Structure Element into Elements and etc....PDF-for-Java // The path to the documents directory. String path = "pathTodir"...Pdf Document document . save ( path + "StructureElementsPro.pdf"...