Package de.redsix.pdfcompare
Class Exclusions
java.lang.Object
de.redsix.pdfcompare.Exclusions
Exclusions collect rectangular areas of the document, that shall be ignored during comparison.
Each area is specified through a
PageArea object.
Exclusions can be read from a file in JSON format (or actually a superset called HOCON) which has the following form:
exclusions: [
{
page: 2
x1: 300 // entries without a unit are in pixels, when Pdf is rendered at 300DPI
y1: 1000
x2: 550
y2: 1300
},
{
// page is optional. When not given, the exclusion applies to all pages.
x1: 130.5mm // entries can also be given in units of cm, mm or pt (DTP-Point defined as 1/72 Inches)
y1: 3.3cm
x2: 190mm
y2: 3.7cm
},
{
page: 7
// coordinates are optional. When not given, the whole page is excluded.
}
]-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasJson()voidforPage(int page) voidreadExclusions(File file) voidreadExclusions(InputStream inputStream) voidreadExclusions(Reader reader) voidreadExclusions(String filename) voidreadExclusions(Path path)
-
Constructor Details
-
Exclusions
-
-
Method Details
-
add
-
remove
-
forPage
-
readExclusions
-
readExclusions
-
readExclusions
-
readExclusions
-
readExclusions
-
forEach
-
asJson
-