Save in rasterized PDF

The following example demonstrates how to save the document as a rasterized PDF file:

final Redactor redactor = new Redactor(Constants.SAMPLE_DOCX);
    // Here we can use document instance to perform redactions
    redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]")));
    SaveOptions tmp0 = new  SaveOptions();
    // Saving as rasterized PDF with no suffix in file name;
finally { redactor.close(); }

© Aspose Pty Ltd 2001-2022. All Rights Reserved.