Bug 155026

Summary: Cannot disable track-changes markup using UNO-Wrapper
Product: LibreOffice Reporter: Felix Hillebrand <office>
Component: sdkAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: stephane.guillou, telesto
Priority: medium    
Version: 7.3.0.3 release   
Hardware: All   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Felix Hillebrand 2023-04-26 09:07:21 UTC
Description:
Hello, 
I've tried mutlipe methods and options to disable TrackChanges when opening a docx with enabled TrackChanges and saving it as a pdf in order to obtain a clean pdf file.
After I open the file I try to use an xDispatchHelper this way to run this (somewhat condensed line): 

    dispatchHelper.executeDispatch(dispatchProvider, ".uno:ShowTrackedChanges", "", 0,
      new PropertyValue[]{
        new PropertyValue() {
          {
            Name = "ShowTrackedChanges";
            Value = false;
          }
        }
      }
    );

But all I seem to get is the same I put into the system, I verified the code is called aswell.
I could reproduce this also with version 7.3 of LibreOffice

Steps to Reproduce:
1. Load a docx document using the uno-wrapper whith track changes enabled and some markup.
2. Apply the given line of code, attempting to disable ShowTrackedChanges
3. Save the document as pdf
4. open the pdf document and verify the track changes are no longer visible

Actual Results:
the track changes markup is still visible

Expected Results:
the track changes markup is no longer visible


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.4.6.2 (x64) / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 4; OS: Windows 10.0 Build 20348; UI render: Skia/Raster; VCL: win
Locale: en-GB (de_AT); UI: en-GB
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2023-05-12 12:23:16 UTC
Does this AskLO answer give any useful hints?

https://ask.libreoffice.org/t/single-key-to-toggle-show-hide-changes/25198/2?u=stragu