After reading the byte streaming and setting the sensitivity label property to the file before writing the docx files
Once documents file is created and opened the file in word reader
Getting an output with word found unreadable content in document, do you want to recover the content of this document? If you trust the source of this document please click yes
Am getting the pop up message after opening the word file where we set the sensitivity label to the file using aspose license.
Please help me
@Sathishkumar14601460
It sounds like you’re encountering an issue with unreadable content in your Word document after setting the sensitivity label using Aspose. This can occur due to several reasons, often related to how the document is processed or saved.
Cause: The unreadable content may stem from an incompatible document format, incorrect loading options, document corruption, or issues with the sensitivity label application.
Solution: Here are some steps to troubleshoot and resolve the issue:
-
Check Document Format: Ensure that you are saving the document in a compatible format. If you’re using DOCX, confirm that the document is being saved correctly with the appropriate options.
-
Use LoadOptions: When loading the document, utilize LoadOptions
to specify necessary settings. For example, set the UpdateDirtyFields
option to true to ensure all fields are updated correctly.
LoadOptions loadOptions = new LoadOptions();
loadOptions.setUpdateDirtyFields(true);
Document doc = new Document("path/to/your/document.docx", loadOptions);
-
Check for Corruption: If the document was previously modified or saved incorrectly, it might be corrupted. Create a new document and apply the sensitivity label to see if the issue persists.
-
Review Sensitivity Label Application: Ensure that the method you are using to apply the sensitivity label is correct and adheres to the expected format. If you’re using a specific API for this, double-check the documentation for any additional parameters or settings that might be required.
-
Test with Different Content: Sometimes, specific content in the document can cause issues. Test with a simpler document to determine if the problem is related to the content itself.
Next Steps: If you continue to experience issues, please provide more details about the code you are using to set the sensitivity label and any specific error messages you are receiving. This information will assist in diagnosing the problem further.
Let me know if you need further assistance!
@Sathishkumar14601460 Aspose.Words does not support loading documents marked with sensitivity labels. There is an article that explains how to work with such documents in .NET:
https://docs.aspose.com/words/net/work-with-document-market-by-sensitivity-label/
But file is getting set with sensitivity label to the .docx file
At the same time getting an error with word document has to be repaired pop alert box
Is there any logic available on java side
Even facing same issue with ppt file and water Mark also getting added to the ppt files(below watermark content)
Evaluation only
Created with aspose.slides for Java 22.11
Copyright 2004-2022 Aspose pty ltd
Can someone please help me with this as well
@Sathishkumar14601460 As I have mentioned Aspose.Words does not directly support sensitivity labels. If you get the document marked with sensitivity labels it was not produced by Aspose.Words or was postprocessed. I would suggest you to check the documents produced by Aspose.Words before adding sensitivity labels and make sure they work as expected.