Free plan

Accept changes / remove comments

Get a Word file ready to send: accept changes, remove comments
POST
/v1/documents/clean-review

About this tool

This tool prepares a Word document (.docx) to share. It can accept or reject all tracked changes, remove comments and hidden text, and clear personal names from the document details. It can also replace the names of reviewers with the word Reviewer. Choose carefully, because accepting or rejecting changes cannot be undone in the result, so keep your original.
For example, before sending a contract to a client you accept all edits and remove all internal comments.

How to use it

  1. Choose this tool.
  2. Add your Word file (.docx).
  3. Choose whether to accept, reject or keep tracked changes.
  4. Turn on what else to clean: comments, hidden text, personal names or reviewer names.
  5. Press Generate, then download the cleaned file.

What you get back

You get a new Word file cleaned as you chose, ready to download and send.
GOOD TO KNOW
Works on the body, headers, footers, footnotes and endnotes. Formatting changes other than text and paragraph formatting (tables, sections) are accepted or dropped, not rolled back. Counts as one document.
TEST IT LIVE

Try Accept changes / remove comments in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/clean-review
Tool ID
documents.clean-review
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/clean-review" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'changes=accept' \
  -F 'remove_comments=true' \
  -F 'response=url'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.cleanReview({
    "file": 'document.pdf',
    "changes": "accept",
    "remove_comments": true,
    "response": "url"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->cleanReview([
    'file' => 'document.pdf',
    'changes' => 'accept',
    'remove_comments' => true,
    'response' => 'url',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Make a Word document ready to send: accept or reject all tracked changes, remove comments and hidden text, take personal names out of the properties and of the authors of what stays, and drop revision ids.

Accept changes / remove comments works from text and settings, so no file is needed. Every input is optional.

Accept changes / remove comments is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/clean-review with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.