Skip to content

Commit c82915e

Browse files
committed
Change throws to IOException for getPdfWriter after FileUtil changes
DEVSIX-8403
1 parent 1bcb265 commit c82915e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/PdfHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static String getTargetDirectory() {
107107
*
108108
* Create pdfWriter using provided path to destination file.
109109
*/
110-
public static PdfWriter getPdfWriter(String pdfPath) throws FileNotFoundException {
110+
public static PdfWriter getPdfWriter(String pdfPath) throws IOException {
111111
return new PdfWriter(pdfPath,
112112
new WriterProperties().addUAXmpMetadata());
113113
}

pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationTestHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ protected String getTextFromTextFile(File file) {
437437
/**
438438
* Create pdfWriter using provided path to destination file.
439439
*/
440-
protected PdfWriter getPdfWriter(String pdfPath) throws FileNotFoundException {
440+
protected PdfWriter getPdfWriter(String pdfPath) throws IOException {
441441
return new PdfWriter(pdfPath,
442442
new WriterProperties().addUAXmpMetadata());
443443
}

0 commit comments

Comments
 (0)