Litera Compare Command Line Comparisons
Litera Compare Command Line Comparisons
Command Line
Comparisons
April 2025
Table Of Contents
Introducing command line comparisons ................................................................................ 1
Running comparisons using lcp_auto.exe ............................................................................. 1
Supported file types .......................................................................................................................... 1
Comparison styles file extensions .................................................................................................. 2
Run the command line ..................................................................................................................... 2
Exit codes .......................................................................................................................................... 3
Examples ........................................................................................................................................... 3
Running comparisons using individual executables ............................................................ 4
lcp_main.exe for Compare for Word ............................................................................................... 4
lcp_ppt.exe for Compare for PowerPoint ....................................................................................... 6
lcx_main.exe for Compare for Excel ............................................................................................... 6
lcp_pdfcmp.exe for Compare for PDF ............................................................................................ 8
Introducing command line comparisons
There are two ways to use the command line to run Litera Compare comparisons:
• Using lcp_auto.exe
1
Comparison styles file extensions
Rendering styles created in the Litera Compare desktop application can be used in
conjunction with lcp_auto.exe:
{path}\lcp_auto.exe -o {original file with full path} -m {modified file with full path}
{comparison options}
Use the following parameters (either short or long forms are acceptable):
-o --original The full path and file name of the original document.
-m --modified The full path and file name of the modified document.
-r --redline The full path and file name of the comparison document
(output).
-s --style The full path and file name of the comparison style file. If
a comparison style file is not specified, the built-in default
comparison style is used.
2
Exit codes
The result codes are returned. Refer to the following list for their meanings.
2 Comparison error
Examples
The following examples illustrate simple ways to use lcp_auto.exe.
Document comparison:
Compare documents in silent mode. When the comparison is finished the redline will be
saved to the destination path, that was passed with “r” parameter.
Compare documents with the specific comparison style, that was passed with “s” parameter.
When the comparison is finished the redline will be saved to the destination path, that was
passed with “r” parameter.
Presentation comparison:
Compare presentations in silent mode. When the comparison is finished the redline will be
saved to the destination path, that was passed with “r” parameter.
3
Compare presentations with the specific comparison style, that was passed with “s”
parameter. When the comparison is finished the redline will be saved to the destination path,
that was passed with “r” parameter.
Spreadsheet comparison:
Compare spreadsheets in silent mode. When the comparison is finished the redline will be
saved to the destination path, that was passed with “r” parameter.
Compare spreadsheets with the specific comparison style, that was passed with “s”
parameter. When the comparison is finished the redline will be saved to the destination path,
that was passed with “r” parameter.
lcp_main.exe -org [original filename] -mod [modified filename] -auto [redline filename]
Name Description
-org [filename] The full path and file name of the original document. Include
the file extension in the name.
-mod [filename] The full path and file name of the modified document.
Include the file extension in the name.
-auto [filename] The full path and file name for the redline (comparison)
document. Include the file extension in the name.
4
Name Description
-autoredp [filename] The full path and file name for the changed pages only
redline document. The file type will always be PDF so need
to include a file extension.
-autorep [filename] Save a change report after the comparison. Add the full
path for the location and include the extension with the
report file name.
-autoorg [filename] Save the original document with a different extension. Add
the full path for the location and include the extension as a
parameter.
-automod [filename] Save the modified document with a different extension. Add
the full path for the location and include the extension as a
parameter.
-autotrch [filename] Save the redline with tracked changes. Add the full path for
the location and include the extension as a parameter.
-style [stylename] The full path and file name of the comparison style file
to apply to the comparison. Include the file extension in
the name. If the comparison style files are in the default
location, the full path isn’t necessary, just the file name and
extension.
-visible Show the Litera Compare main window and display the
redline in it. (By default, the window is hidden and
the redline is saved according to what is set for -auto
[filename].)
5
Name Description
-client [application The name of the client application that launches Compare
name] for Word.
lcp_ppt.exe -org [original filename] -mod [modified filename] -auto [redline filename]
The command line options are the same as those used for lcp_main.exe for Compare for
Word.
Name Description
Silent compare:
Name Description
6
Name Description
-lorg [filename] The full path and file name of the original document. Include the
file extension in the name.
-lmod [filename] The full path and file name of the modified document. Include the
file extension in the name.
-lres [filename] The full path and file name for the redline (comparison) document.
Include the file extension in the name.
-style [stylename] The full path and file name of the comparison style file to apply
to the comparison. Include the file extension in the name. If the
comparison style files are in the default location, the full path isn’t
necessary, just the file name and extension.
Simple launch
Name Description
-lorg [filename] Original file name. Use the full path to the location and
include the extension with the original file name.
-lmod [filename] Modified file name. Use the full path to the location and
include the extension with the modified file name.
7
lcp_pdfcmp.exe for Compare for PDF
Command line syntax
Name Description
-org [original filename] The full path and file name of the original document.
-mod [modified filename] The full path and file name of the modified document.
8
©2025 Litera