Bug 167659 - Allow hiding tracked changes in PDF export from command line
Summary: Allow hiding tracked changes in PDF export from command line
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Aron Budea
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Track-Changes Commandline PDF-Export
  Show dependency treegraph
 
Reported: 2025-07-24 05:30 UTC by Aron Budea
Modified: 2025-07-25 06:42 UTC (History)
0 users

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 Aron Budea 2025-07-24 05:30:59 UTC
In desktop, one can hide tracked changes via the UI before exporting to PDF. When using '--convert-to' endpoint, this isn't possible: if the document has tracked changes, and they are shown, the following command will export them as shown.
soffice.exe --convert-to pdf <ODT file>

After the following feature got implemented enabling passing options during command line conversion, it'd be great if there was one to hide tracked changes from the PDF output:
https://vmiklos.hu/blog/pdf-convert-to.html

One could also argue for changing the default when converting via command line, because not showing the changes is probably the more often used scenario, but for now, let's just have an option.
Comment 1 Commit Notification 2025-07-25 06:40:01 UTC
Aron Budea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/625fc73a5784fc5dec06df579a9951908f52a783

tdf#167659 Allow hiding tracked changes in PDF export from command line

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Aron Budea 2025-07-25 06:42:45 UTC
This can now be done by adding 'ExportTrackedChanges'
during command line conversion as a --convert-to parameter, eg.:
'pdf:writer_pdf_Export:{"ExportTrackedChanges":{"type":"boolean","value":"false"}}'
Same in Windows:
"pdf:writer_pdf_Export:{\"ExportTrackedChanges\":{\"type\":\"boolean\",\"value\":\"false\"}}"