File tree Expand file tree Collapse file tree
pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers
pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments