Class PdfCleanUpProcessor


  • public class PdfCleanUpProcessor
    extends Object
    Represents the main mechanism for cleaning a PDF document.
    Since:
    5.5.4
    • Field Detail

      • floatMultiplier

        public static double floatMultiplier
        When a document with line arts is being cleaned up, there are lot of calculations with floating point numbers. All of them are translated into fixed point numbers by multiplying by this coefficient. Vary it to adjust the preciseness of the calculations.
      • fillCleanedArea

        public static boolean fillCleanedArea
      • arcTolerance

        public static double arcTolerance
        Used as the criterion of a good approximation of rounded line joins and line caps.
    • Constructor Detail

      • PdfCleanUpProcessor

        public PdfCleanUpProcessor​(List<PdfCleanUpLocation> pdfCleanUpLocations,
                                   PdfStamper pdfStamper)
        Creates a PdfCleanUpProcessor object based on the given List of PdfCleanUpLocations representing regions to be erased from the document.
        Parameters:
        pdfCleanUpLocations - list of locations to be cleaned up {@see PdfCleanUpLocation}
        pdfStamper - APdfStamper object representing the document which redaction applies to.
      • PdfCleanUpProcessor

        public PdfCleanUpProcessor​(PdfStamper pdfStamper)
        Creates a PdfCleanUpProcessor object. Regions to be erased from the document are extracted from the redact annotations contained inside the given document.
        Parameters:
        pdfStamper - APdfStamper object representing the document which redaction applies to.