DOCX Compare using PHP
Compare Word documents for differences in content and formatting
DOCX Compare features
The DOCX Compare PHP SDK allows for comparing two Word document versions to identify differences using revision marks.
It offers various customization options including the ability to specify comparison granularity at the word or character level, whether to compare formatting, case changes, whitespace, tables, headers and footers, footnotes and endnotes, textboxes, fields, comments, document moves, and whether to accept revisions before comparison.
This is useful for efficiently managing document revisions in collaborative environments such as legal, academic, and corporate settings.
File conversion library for PHP
ConvertAPI provides a PHP library that allows you to perform a DOCX Compare conversion with just a few lines of code. DOCX Compare documents using PHP programming language with no effort at all!
composer require convertapi/convertapi-php
Or install it manually using ConvertApi autoloader:
require_once('/path/to/convertapi-php/lib/ConvertApi/autoload.php');
How To DOCX Compare using PHP?
You can DOCX Compare in a few simple steps:
- Obtain your secret key by signing up for a free account.
- Install the ConvertAPI library for PHP
- Set up the DOCX Compare conversion using our live demo tool
- Copy-paste the auto-generated code snippet into your project!
DOCX Compare - complete code snippet for PHP
Once you have your authentication in place, simply copy-paste this docx to compare conversion code snippet into your PHP project:
Try the conversion online - no coding required!
You can try out advanced conversion parameters and test the conversion result online using our interactive demo tool. This tool will produce the same conversion output as if you were using the library from your solution, and it will auto-generate the code snippet for you!
Try for FREE!Conversion parameters
Sets the password to open protected documents.
The property defines the granularity of comparisons between documents or text segments. It determines the precision of the comparison process, allowing users to specify whether differences are identified based on larger text blocks, such as words or sentences, or at a more detailed level, such as characters or formatting.
Values: Word Character
Determines whether to indicate variations in formatting between the two documents.
Determines whether to highlight discrepancies in capitalization between the two documents.
Determines whether to identify dissimilarities in whitespace, such as gaps or paragraphs, between the two documents.
Determines whether to evaluate variations in the information presented within tables between the two documents.
Determines whether to contrast divergences in headers and footers between the two documents.
Determines whether to compare differences in footnotes and endnotes between the two documents.
Determines whether to assess differences in the information presented within text boxes between the two documents.
Determines whether to detect disparities in fields between the two documents.
Determines whether to evaluate distinctions in comments between the two documents.
Indicates the name of the individual to credit for modifications when comparing the two documents.
Specifies whether to accept revisions before document comparison.
Author name who made revision.