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.
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.
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\"}}"