Some test text!



There are two options to perform redaction. First is using a UI component that provides tools to select text or create regions interactively. Second is an API guide to programmatically apply redactions.

Redact PDFs on iOS


Redaction typically involves removing sensitive content within documents for safe distribution to courts, patent and government institutions, the media, customers, vendors or any other audience with restricted access to the content. The redaction process in PDFTron consists of two steps:

  • Content identification: A user applies redact annotations that specify the pieces or regions of content that should be removed. The content for redaction can be identified either interactively (e.g. using PTPDFViewCtrl) or programmatically (e.g. using PTTextSearch or PTTextExtractor). Up until the next step is performed, the user can see, move and redefine these redact annotations.
  • Content removal: Using PTRedactor the user instructs PDFTron to apply the redact regions, after which the content in the area specified by the redact annotations is removed. The redaction function includes a number of options to control the style of the redaction overlay (including color, text, font, border, transparency, etc.).

PDFTron Redactor makes sure that if a portion of an image, text, or vector graphics is contained in a redaction region, that portion of the image or path data is destroyed and is not simply hidden with clipping or image masks.

PDFTron API can also be used to review and remove metadata and other content that can exist in a PDF document, including XML Forms Architecture (XFA) content and Extensible Metadata Platform (XMP) content.

linkBuilt-in redaction tool

The Tools framework comes with PTTextRedactionCreate and PTRectangleRedactionCreate tools that allow redaction on any region or through text selection.

Text redactionRectangular redaction
text redactionrect redaction

The built-in redaction tool will continue to improve in the near future.

linkNext steps

Keep in mind that PDFTron's redact feature can do much more! See related topics here:

Get the answers you need: Support


Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more