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 String
getTempFilePath
(String name, String extension) Gets path to temp file in current system temporary directory.static void
writeToTextFile
(String path, String data) Writes providedString
to text file using provided path.
-
Method Details
-
writeToTextFile
Writes providedString
to 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
-