Skip to main content
G-Nomes
Participant
April 30, 2026
Answered

Can we get a Shortcut key for Redacting a whole page please

  • April 30, 2026
  • 2 replies
  • 127 views

Hi - Not sure if this is the appropriate pathway - but is there a way to get a shortcut key added for redacting a page? Currently there is one for the redaction tool but we redact large amounts of whole pages and would love a shortcut to redact the current page and still use the menu to select a grouping.

    Correct answer try67

    Just change:

    page: 0

    to:

    page: this.pageNum

    However, be advised this code doesn’t actually apply the redaction markup, it just creates it.

    2 replies

    PDF Automation Station
    Community Expert
    Community Expert
    May 1, 2026

    You can create a 1-click toolbar button that runs this script:

    var cb=this.getPageBox("Crop",this.pageNum);
    var rct=[cb[0],cb[3],cb[2],cb[1]];
    var left=rct[0];
    var right=rct[2];
    var top=rct[3];
    var bot=rct[1];
    var qd=[[left, top, right, top, left, bot, right, bot]];

    this.addAnnot({
    page:this.pageNum,
    type:"Redact",
    quads:qd
    })

     

    I have a (paid for) tool that creates toolbar buttons:

    https://www.pdfautomationstation.com/products/item10.cfm

    Bernd Alheit
    Community Expert
    Community Expert
    May 2, 2026

    This redacts the first page.

    try67
    Community Expert
    try67Community ExpertCorrect answer
    Community Expert
    May 2, 2026

    Just change:

    page: 0

    to:

    page: this.pageNum

    However, be advised this code doesn’t actually apply the redaction markup, it just creates it.

    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    April 30, 2026
    David Creamer: Community Expert (ACI and ACE 1995-2023)