The following example demonstrates how to save the document as a rasterized PDF file:
finalRedactorredactor=newRedactor(Constants.SAMPLE_DOCX);try{// Here we can use document instance to perform redactions
redactor.apply(newExactPhraseRedaction("John Doe",newReplacementOptions("[personal]")));SaveOptionstmp0=newSaveOptions();tmp0.setAddSuffix(false);tmp0.setRasterizeToPDF(true);// Saving as rasterized PDF with no suffix in file name
redactor.save(tmp0);}finally{redactor.close();}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.