Hi,
When saving as .Odt if I set:
OdtSaveOptions.Password = “111”
I will get XmlException: Data at the root level is invalid. Line 1, position 1.
Hi,
When saving as .Odt if I set:
OdtSaveOptions.Password = “111”
I will get XmlException: Data at the root level is invalid. Line 1, position 1.
@australian.dev.nerds I cannot reproduce the problem on my side. I used the following simple code for testing:
Document doc = new Document(@"C:\Temp\in.docx");
OdtSaveOptions opt = new OdtSaveOptions();
opt.Password = "123";
doc.Save(@"C:\Temp\out.odt", opt);
out.zip (4.8 KB)
Thanks, I used your code:
Dim doc As Document = New Document("d:\file.html")
Dim opt As OdtSaveOptions = New OdtSaveOptions()
opt.Password = "123"
doc.Save("d:\file.odt", opt)
and didn’t get the exception, however, when I tried to open it in LibreOffice, I got error:
The encrypted document contains unexpected non-encrypted streams.
This could be the result of document manipulation.
We recommend that you do not trust the content of the current document.
Execution of macros is disabled for this document.
Seems odt write engine needs a touch ![]()
OK I managed to reproduce the error, it happens when using both signing and encryption together!
Can you reproduce when applying DigitalSignatureDetails and Password both in OdtSaveOptions?
And it’s a flip flop, first I get:
Data at the root level is invalid. Line 1, position 1.
Next attempt:
Invalid character in the given encoding. Line 1, position 1.
And looped…
Thanks ![]()
@australian.dev.nerds
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-29372
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.