Forum


Replies: 2   Views: 168
Setting a lock on trackchanges affecting the whole document protection
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by tarekas  · 26-07-2024 - 08:48

I am using cryptoPHPDOCX to lock the tracking changes in a word document using :
 

$docx->protectDocx($file_path . '.docx', $file_path . '.docx', array('password' => $tracking_lock_pass, 'type' => 'trackedChanges'));



I faced an issue when using third party word editor in my application, it's not allowing me to open the document (read-only) . I contacted the third party and they said the following : 

document_with_unlock_changes_working.docx having track changes locked by Microsoft Word uses the cryptProviderType rsaAES, while the file document_with_unlock_changes_not_working.docx having the track changes locked using PHPDOCX uses the cryptProviderType rsaFull.
At present, DocumentEditor only supports the "rsaAES" cryptProviderType for both protecting and unprotecting documents.

can we change the encryption type?

Thanks.