Skip to content

Commit 336705d

Browse files
committed
[RELEASE] iText 7 pdfSweep 3.0.1
2 parents e8d44ab + 8ca1792 commit 336705d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+135
-61
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>com.itextpdf</groupId>
77
<artifactId>root</artifactId>
8-
<version>7.2.0</version>
8+
<version>7.2.3</version>
99
<relativePath />
1010
</parent>
1111

1212
<artifactId>cleanup</artifactId>
13-
<version>3.0.0</version>
13+
<version>3.0.1</version>
1414

1515
<name>pdfSweep</name>
1616
<description>Redact PDF documents. If you have to share PDFs with different departments or send them out of house, but they
@@ -52,7 +52,7 @@
5252
<dependency>
5353
<groupId>org.apache.commons</groupId>
5454
<artifactId>commons-imaging</artifactId>
55-
<version>1.0-SNAPSHOT</version>
55+
<version>1.0-alpha1</version>
5656
</dependency>
5757
<dependency>
5858
<groupId>com.itextpdf</groupId>

src/main/java/com/itextpdf/pdfcleanup/CleanUpProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/pdfcleanup/FilteredImagesCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/pdfcleanup/LineDashPattern.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/pdfcleanup/PdfCleanUpEventListener.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -55,13 +55,19 @@ This file is part of the iText (R) project.
5555
import java.util.List;
5656
import java.util.Set;
5757

58+
/**
59+
* An event listener which handles cleanup related events.
60+
*/
5861
public class PdfCleanUpEventListener implements IEventListener {
5962
private static final String textDataExpected = "Text data expected.";
6063
private static final String imageDataExpected = "Image data expected.";
6164
private static final String pathDataExpected = "Path data expected.";
6265

6366
private List<IEventData> content = new ArrayList<>();
6467

68+
/**
69+
* {@inheritDoc}
70+
*/
6571
@Override
6672
public void eventOccurred(IEventData data, EventType type) {
6773
switch (type) {
@@ -134,6 +140,9 @@ PathRenderInfo getEncounteredPath() {
134140

135141
}
136142

143+
/**
144+
* {@inheritDoc}
145+
*/
137146
@Override
138147
public Set<EventType> getSupportedEvents() {
139148
return null;

src/main/java/com/itextpdf/pdfcleanup/PdfCleanUpFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/pdfcleanup/PdfCleanUpLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/pdfcleanup/PdfCleanUpProcessor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -106,6 +106,9 @@ This file is part of the iText (R) project.
106106
import org.slf4j.Logger;
107107
import org.slf4j.LoggerFactory;
108108

109+
/**
110+
* PDF content stream processor, which filters content to be cleaned up.
111+
*/
109112
public class PdfCleanUpProcessor extends PdfCanvasProcessor {
110113

111114
private static final Set<String> TEXT_SHOWING_OPERATORS = Collections.unmodifiableSet(new HashSet<String>(

src/main/java/com/itextpdf/pdfcleanup/PdfCleanUpTool.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -183,6 +183,13 @@ public PdfCleanUpTool(PdfDocument pdfDocument, List<PdfCleanUpLocation> cleanUpL
183183
}
184184
}
185185

186+
/**
187+
* Adds a {@link PdfCleanUpLocation} to be cleaned up.
188+
*
189+
* @param cleanUpLocation a {@link PdfCleanUpLocation} to be cleaned up
190+
*
191+
* @return this {@link PdfCleanUpTool}
192+
*/
186193
public PdfCleanUpTool addCleanupLocation(PdfCleanUpLocation cleanUpLocation) {
187194
List<PdfCleanUpLocation> pgLocations = this.pdfCleanUpLocations.get(cleanUpLocation.getPage());
188195
if (pgLocations == null) {
@@ -362,7 +369,7 @@ private List<Rectangle> translateQuadPointsToRectangles(PdfArray quadPoints) {
362369
* Remove the redaction annotations.
363370
* This method is called after the annotations are processed.
364371
*
365-
* @throws IOException
372+
* @throws IOException signals that an I/O exception has occurred during redaction.
366373
*/
367374
private void removeRedactAnnots() throws IOException {
368375
for (PdfRedactAnnotation annotation : redactAnnotations.keySet()) {

src/main/java/com/itextpdf/pdfcleanup/PdfCleaner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

0 commit comments

Comments
 (0)