Some test text!

Setting up redaction

When creating a new instance of WebViewer, the enableRedaction property needs to be set to true for users to create new redactions and the fullAPI or pdftronServer properties need to be setup to be able to apply redactions. It's possible to use redactions with only enableRedaction, but users won't be able to apply redactions.

var viewer = new PDFTron.WebViewer({
    ... // other options
    fullAPI: true,
    // can also use 'pdftronServer' instead of 'fullAPI'
    // pdftronServer: 'https://demo.pdftron.com/'
    enableRedaction: true
}, viewerElement);

Besides passing in a constructor option, redaction can be toggled using the WebViewer API with the enableRedaction and disableRedaction functions.

var viewer = new PDFTron.WebViewer({
    ... // other options
}, viewerElement);

viewerElement.addEventListener('documentLoaded', function() {
  viewer.getInstance().enableRedaction();
}

Get the answers you need: Support