This repository was archived by the owner on Feb 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-33
lines changed
src/main/java/org/ghost4j/document Expand file tree Collapse file tree 2 files changed +11
-33
lines changed Original file line number Diff line number Diff line change 132132 <artifactId >xmlgraphics-commons</artifactId >
133133 <version >2.3</version >
134134 </dependency >
135- <dependency >
136- <groupId >com.lowagie</groupId >
137- <artifactId >itext</artifactId >
138- <version >2.1.7</version >
139- <exclusions >
140- <exclusion >
141- <artifactId >bcmail-jdk14</artifactId >
142- <groupId >bouncycastle</groupId >
143- </exclusion >
144- <exclusion >
145- <artifactId >bcmail-jdk14</artifactId >
146- <groupId >org.bouncycastle</groupId >
147- </exclusion >
148- <exclusion >
149- <artifactId >bcprov-jdk14</artifactId >
150- <groupId >bouncycastle</groupId >
151- </exclusion >
152- <exclusion >
153- <artifactId >bcprov-jdk14</artifactId >
154- <groupId >org.bouncycastle</groupId >
155- </exclusion >
156- <exclusion >
157- <artifactId >bctsp-jdk14</artifactId >
158- <groupId >org.bouncycastle</groupId >
159- </exclusion >
160- </exclusions >
135+ <dependency >
136+ <groupId >com.itextpdf</groupId >
137+ <artifactId >itextpdf</artifactId >
138+ <version >5.5.13.1</version >
161139 </dependency >
162140 </dependencies >
163141
Original file line number Diff line number Diff line change 1414
1515import org .apache .commons .io .IOUtils ;
1616
17- import com .lowagie .text .pdf .PdfContentByte ;
18- import com .lowagie .text .pdf .PdfCopy ;
19- import com .lowagie .text .pdf .PdfImportedPage ;
20- import com .lowagie .text .pdf .PdfReader ;
21- import com .lowagie .text .pdf .PdfWriter ;
17+ import com .itextpdf .text .pdf .PdfContentByte ;
18+ import com .itextpdf .text .pdf .PdfCopy ;
19+ import com .itextpdf .text .pdf .PdfImportedPage ;
20+ import com .itextpdf .text .pdf .PdfReader ;
21+ import com .itextpdf .text .pdf .PdfWriter ;
2222
2323/**
2424 *
@@ -93,7 +93,7 @@ public Document extract(int begin, int end) throws DocumentException {
9393
9494 if (content != null ) {
9595
96- com .lowagie .text .Document document = new com .lowagie .text .Document ();
96+ com .itextpdf .text .Document document = new com .itextpdf .text .Document ();
9797
9898 try {
9999
@@ -141,7 +141,7 @@ public void append(Document document) throws DocumentException {
141141 super .append (document );
142142
143143 ByteArrayOutputStream baos = null ;
144- com .lowagie .text .Document mergedDocument = new com .lowagie .text .Document ();
144+ com .itextpdf .text .Document mergedDocument = new com .itextpdf .text .Document ();
145145
146146 try {
147147
You can’t perform that action at this time.
0 commit comments