Get Started
Usage API
More information

Comparing documents

If you need to compare two documents, you can use Document Builder. The steps below will show you how to do it:

  1. Create the compare.docbuilder script file with the following code:

    var file = builderJS.OpenTmpFile("");
    AscCommonWord.CompareDocuments(Api, file, null);
    builder.SaveFile("docx", "Result.docx");

    where - the path to the first file for comparing, - the path to the second file for comparing.

  2. Send the POST request to https://documentserver/docbuilder with the following body in the JSON format:

        "async": false,
        "url": ""

    where - the path to the .docbuilder script.

  3. Once the document generation is ready, the response with the absolute URL to the output file of document comparing will be returned:

       "key": "Khirz6zTPdfd7",
        "urls": {
            "Result.docx": "https://documentserver/Result.docx"
        "end": true
  4. Download the document from the received link. Now you can check all the document differences and accept or reject them using the corresponding buttons on the top toolbar.

    Compare documents