# Select specific pages for rasterized PDF ### Select specific pages for rasterized PDF Saving document as a rasterized PDF, you can specify starting page index (zero based) and the number of pages from this index to save. Also, you can change the Compliance level from PDF/A-1b, which is used by default, to PDF/A-1a: {{< tabs "code-example-select-specific-pages-for-rasterized-pdf" >}} {{< tab "select_specific_pages_for_rasterized_pdf.java" >}} ```java final Redactor redactor = new Redactor("MultipageSample.docx"); try { RedactorChangeLog result = redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(java.awt.Color.RED))); if (result.getStatus() != RedactionStatus.Failed) { SaveOptions options = new SaveOptions(); options.getRasterization().setEnabled(true); // the same as options.RasterizeToPDF = true; options.getRasterization().setPageIndex(5); // start from 6th page (index is 0-based) options.getRasterization().setPageCount(1); // save only one page options.getRasterization().setCompliance(PdfComplianceLevel.PdfA1a); // by default PdfComplianceLevel.Auto or PDF/A-1b options.setAddSuffix(true); redactor.save(options); } } finally { redactor.close(); } ``` {{< /tab >}} {{< tab "multipage_sample.docx" >}} {{< tab-text >}} `multipage_sample.docx` is the sample file used in this example. Click [here](https://docs.groupdocs.com/redaction/java/_sample_files/developer-guide/advanced-usage/saving-documents/select-specific-pages-for-rasterized-pdf/multipage_sample.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "MultipageSample_Redacted.pdf" >}} ```text Binary file (PDF, 10.7 MB) ``` [Download full output](https://docs.groupdocs.com/redaction/java/_output_files/developer-guide/advanced-usage/saving-documents/select-specific-pages-for-rasterized-pdf/CodeExampleSelectSpecificPagesForRasterizedPdf/MultipageSample_Redacted.pdf) {{< /tab >}} {{< /tabs >}}