Bug 159130

Summary: Add option to remove personal information from documents at runtime
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=157484
https://bugs.documentfoundation.org/show_bug.cgi?id=159128
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 116885    

Description Gabor Kelemen (allotropia) 2024-01-11 13:06:10 UTC
This is a followup to bug 157484

It is possible to fine tune what sort of personal information to remove at save time, but it can be useful to do the same at runtime in the document, similarly to how the Inspect Document dialog works in MSO (minus the inspection part). 

1. Open attachment 189853 [details] from bug 157482
2. Open Tools - Options - Security - Options
3. Check the "Remove Personal information on saving" box, close the dialogs
3. Save the file as another name, reopen
-> The personal informations such as the comments or the tracked changes author, date are removed.

Doing the same should be possible at runtime in a separate dialog.
First idea was to add this to the infobar that is visible when there are security warnings enabled (see attachment 190296 [details]) and the user tries to print/PDF export/save/digitally sign the file. So that there would be two buttons on the infobar, one to change the warning settings (see also bug 159128) and this one to instantly clean them.

Another possible place could be the File - Properties dialog where there is a "Reset Properties" button to clean the file level metadata. 
Changing it to "Clear personal information" and popup the dialog where the user can select what to clean.
Note: by my understanding "Reset Properties" button can remove the same file level metadata as the "Remove Personal information on saving" -> Document user information option, so there is already similar functionality.

I think just extending the "Reset Properties" button to "do more" and not give any details/choices about what is happening is not desirable, as that would not be educative towards the users about just what sort of personal metadata is created in a document/spreadsheet/presentation.

The dialog could offer with checkboxes to remove the same things from the document that are listed below the "Remove Personal information on saving" button (track changes, document user info, notes info, document version info), but without saving it at the same time.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 25276df12abd9d002f7f899900434617b256f745
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: de-DE
Calc: threaded