Add Strikeout Annotations to PDF using Node.js REST API

With a strikeout annotation, you can place a line through selected text in a PDF. It makes it easier to mark selected text as no longer valid or needing attention. These annotations are useful when reviewing reports, forms, and drafts where changes need to be clear without removing the original text. This guide demonstrates how to add strikeout annotations to PDF files in Node.js using a cloud REST API. You only need a few simple API calls to get the job done across multiple platforms and environments.

Why annotate PDFs with strikeout annotations?

Strikeout marks help readers spot outdated, incorrect, or unwanted information while keeping the original wording visible. They make PDF document reviews convenient, support approval workflows, and give teams a simple way to show proposed removals.

Steps to Add Strikeout Annotations to PDF Files in Node.js

  1. Import and set up GroupDocs.Annotation Cloud SDK for Node.js
  2. Obtain your API credentials and configure them with AnnotateApi
  3. Add the source PDF file with FileInfo
  4. Create a strikeout annotation and set properties with AnnotationInfo
  5. Define annotation options like the output file path with AnnotateOptions
  6. Send a request to annotate the PDF and execute it with the annotate() method

Adding a strikeout annotation to a PDF document can make file checking easier in a collaborative environment. Instead of deleting text immediately, reviewers can cross out sections that need to be removed or reconsidered. With the Node.js REST API, users can work with PDF annotations without a heavy document-processing setup. The service handles annotation operations in the cloud, while the application can send the required document and annotation details. This workflow helps teams that process documents regularly and want a consistent way to mark changes in PDFs. Strikeout markup can also fit into document review workflows. A reviewer may flag outdated clauses in a PDF document by crossing out information that should not appear in a final version. Keeping the original text visible provides context for the next person who checks the document.

Code to Add Strikeout Annotations to PDF Files in Node.js

By following this article, users can add strikeout annotations to PDF files using the GroupDocs.Annotation Cloud Node.js SDK. The feature helps identify text that needs removal or correction while preserving the document’s original context. It works well for various documents, such as contracts, reports, forms, and other PDFs that go through review. Strikeout annotations help make the review process clearer without permanently changing the source content. The Node.js REST API enables seamless functionality of your applications across Windows, Linux, and macOS.

If PDF review is only part of your document work, you may also want to see how to add underline annotations to DOC files using the Node.js REST API and explore another way to mark specific content in word-processing documents.