Package com.itextpdf.pdfocr.util
Class PdfOcrFileUtil
java.lang.Object
com.itextpdf.pdfocr.util.PdfOcrFileUtil
Utility class for working with files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTempFilePath(String name, String extension) Gets path to temp file in current system temporary directory.static voidwriteToTextFile(String path, String data) Writes providedStringto text file using provided path.
-
Method Details
-
writeToTextFile
Writes providedStringto text file using provided path. -
getTempFilePath
Gets path to temp file in current system temporary directory.- Parameters:
-
name- temp file name -
extension- temp file extension - Returns:
- path to temp file in the system temporary directory
- Throws:
-
IOException- when temp file cannot be obtained
-