목록parser (3)
아님말고
필요한 jar : PDFBox-0.7.3.jar , fontbox-0.1.0-dev.jar view plaincopy to clipboardprint? import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import org.pdfbox.cos.COSDocument; import org.pdfbox.pdfparser.PDFParser; import org.pdfbox.pdmodel.PDDocument; import org.pdfbox.util.PDFTextStripper; public class PDFTest { public static void main(Strin..
조건 : POI 3.5 이상 한글 추출도 잘된다. [워드] import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import org.apache.poi.hwpf.extractor.WordExtractor; public class POITest { public static void main(String args[]){ String src = "D:\\study\\data\\test.doc"; String text = null; try { File file = new File(src); InputStr..