Use advanced rasterization options In order to use the advanced rasterization options you have to pass one of the options to Save method. In this case the document will be rasterized to PDF, but the scan-like effects will be applied to its pages.
The following example demonstrates how to apply the AdvancedRasterizationOptions with default settings.
final Redactor redactor = new Redactor("Sample.docx"); try { // Save the document with advanced options (convert pages into images, and save PDF with scan-like pages) SaveOptions so = new SaveOptions(); so....by providing the “border” dictionary item with an integer value...“maxSpots” and “spotMaxSize” dictionary items having integer values...