We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose words java - set appearance StructuredDocumentTag

Could you please tell me how I can change appearance of a structuredDocumentTag in java ? I saw in api reference that getter and setter exist (getAppearance and setAppearance) with constant SdtAppearance but I can’t access it.
Source : https://apireference.aspose.com/words/java/com.aspose.words/SdtAppearance

I’m working with version 21.9 of com.aspose.words

Thank you !

Best Regards


Following code example shows how to use StructuredDocumentTag.Appearance property. Could you please share some more detail about the issue that you are facing?

Document document = new Document(MyDir + "input.docx");
for(StructuredDocumentTag sdt :(Iterable<StructuredDocumentTag >)document.getChildNodes(NodeType.STRUCTURED_DOCUMENT_TAG, true))
document.save(MyDir + "21.10.docx");


Thanks a lot for your answer.
The problen was my version of Aspose. I reloaded my project with version 21.1 of com.aspose.words and I got the reference to the property…
I was previously in version 21.9

Best Regards


Have your problem solved? We suggest you please use the latest version of Aspose.Words for Java 21.10.

Good morning Tahir,

Yes my problem is solved with version 21.10.

Thanks a lot for your support

Best Regards

image001.png (1.87 KB)