Hi,
I was trying to convert a simple password protected docx to pdf.
I tried to load the file via a stream (which works with non password protected passwords).
I get the following errors:
poDocx = new Spire.Doc.Document(poMemoryDocX, Spire.Doc.FileFormat.Docx, "open");
gives "Zip exception.Can't locate end of central directory record. Possible wrong file format or archive is corrupt."
poDocx = new Spire.Doc.Document(poMemoryDocX, Spire.Doc.FileFormat.Auto, "open");
gives "A disk error occurred during a write operation. (Exception from HRESULT: 0x8003001D (STG_E_WRITEFAULT))"
NB: The attached doc has an open password of 'open' and a modify password of 'edit'.
Thanks,
Mark.