# Use PDF redaction filters Set page-level scope for redactions using PageRangeFilter and PageAreaFilter. You can combine **PageRangeFilter** and **PageAreaFilter** in one set to limit a redaction to an area on a specific page (or slide). Assign the filters array to the **Filters** property of **ReplacementOptions**. The same approach applies to PDF and to other formats that support page filters. The following example demonstrates how to apply redaction to the bottom half of the last page in a PDF document. {{< tabs "code-example-use-pdf-redaction-filters" >}} {{< tab "use_pdf_redaction_filters.js" >}} ```js const redaction = require('@groupdocs/groupdocs.redaction'); const java = require('java'); const Dimension = java.import('java.awt.Dimension'); const Point = java.import('java.awt.Point'); const redactor = new redaction.Redactor('Sample.pdf'); try { // Get the actual size information for the last page: const info = redactor.getDocumentInfo(); const lastPage = info.getPages().get(info.getPageCount() - 1); const options = new redaction.ReplacementOptions('[secret]'); options.setFilters(new redaction.RedactionFilter[] { new redaction.PageRangeFilter(redaction.PageSeekOrigin.End, 0, 1), new redaction.PageAreaFilter(new Point(0, lastPage.getHeight()/2), new Dimension(lastPage.getWidth(), lastPage.getHeight()/2)) }); const result = redactor.apply(new redaction.ExactPhraseRedaction('bibliography', false, options)); if (result.getStatus() !== redaction.RedactionStatus.Failed) { redactor.save(); } } finally { redactor.close(); } ``` {{< /tab >}} {{< tab "multipage_sample.pdf" >}} {{< tab-text >}} `multipage_sample.pdf` is the sample file used in this example. Click [here](https://docs.groupdocs.com/redaction/nodejs-java/_sample_files/developer-guide/advanced-usage/using-redaction-filters/use-pdf-redaction-filters/multipage_sample.pdf) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "Sample_Redacted.pdf" >}} ```text Binary file (PDF, 1018 KB) ``` [Download full output](https://docs.groupdocs.com/redaction/nodejs-java/_output_files/developer-guide/advanced-usage/using-redaction-filters/use-pdf-redaction-filters/CodeExampleUsePdfRedactionFilters/Sample_Redacted.pdf) {{< /tab >}} {{< /tabs >}}