I am trying to combine two word documents with Aspose.Words for Java. One of those documents should be protected, so that it isn’t possible for a user to edit it while the other document should still be editable. When I protect one of the documents using firstDoc.protect(ProtectionType.READ_ONLY, “password”); and combine the two via firstDoc.appendDocument(secondDoc, ImportFormatMode.KEEP_SOURCE_FORMATTING); however, the resulting document is protected in its entirety. (Andi f I switch the order of the documents, i.e. use the not protected document first, the resulting document isn’t protected at all).
So my question is: Is it possible to combine two documents and only protect one of them in the resulting document?