Bug 155026 - Cannot disable track-changes markup using UNO-Wrapper
Summary: Cannot disable track-changes markup using UNO-Wrapper
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-26 09:07 UTC by Felix Hillebrand
Modified: 2023-05-12 12:23 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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