public class ConvertToTXT extends Object
Constructor and Description |
---|
ConvertToTXT() |
Modifier and Type | Method and Description |
---|---|
void |
convertPdfToTxt(String filePath,
int maxPageNumber)
Covert a PDF to a TXT file and remove the PDF.
|
void |
removeHTMLTags(String sourceFilePath,
String outputFilePath,
boolean deleteSource)
Remove HTML tags from the file content
|
public void removeHTMLTags(String sourceFilePath, String outputFilePath, boolean deleteSource)
sourceFilePath
- the path of the source fileoutputFilePath
- the path of the output file, after cleaning HTML tagsdeleteSource
- if true, delete the source filepublic void convertPdfToTxt(String filePath, int maxPageNumber)
filePath
- the full path of the PDF filemaxPageNumber
- maximun number of pages to convert, 0 to remove limitsCopyright © 2016. All rights reserved.