use of com.itextpdf.pdfcleanup.autosweep.PdfAutoSweepTools in project i7j-pdfsweep by itext.
the class PdfCleaner method autoSweepCleanUp.
/**
* Perform cleanup of areas of interest based on a given cleanup strategy.
* Note, use methods with InputStream/OutputStream params if you don't want to consume itext-core product license
* limits.
*
* @param pdfPage the {@link PdfPage} to which cleaned up applies
* @param strategy cleanup strategy to be used
* @param properties additional properties for cleanUp
*
* @throws IOException if an I/O error occurs
*/
public static void autoSweepCleanUp(PdfPage pdfPage, ICleanupStrategy strategy, CleanUpProperties properties) throws IOException {
List<PdfCleanUpLocation> cleanUpLocations = new PdfAutoSweepTools(strategy).getPdfCleanUpLocations(pdfPage);
cleanUp(pdfPage.getDocument(), cleanUpLocations, properties);
}
Aggregations