Minggu, 31 Juli 2011
http://sarovar.org/docman/view.php/32/23/javadbf-tutorial.html
XbaseJ
StreamReader StreamReader = new StreamReader(op.FileName);
while ( StreamReader.Peek()>=0 ){
MessageBox.Show(StreamReader.ReadLine());
}
Sabtu, 30 Juli 2011
Image image1 = Image.getInstance("images.jpg");
document.add(image1);
Senin, 25 Juli 2011
PDFBox
String path = "/Users/daniel/Temp/mypdf.pdf";
PDFTextStripper stripper = new PDFTextStripper();
PDDocument pdDoc = PDDocument.load(path);
StringWriter writer = new StringWriter();
stripper.writeText(pdDoc, writer);
System.out.println(writer.toString());
iText
String path = "/Users/daniel/Temp/mypdf.pdf";
PdfReader reader = new PdfReader(path);
int numberOfPages = reader.getNumberOfPages();
PdfTextExtractor extractor = new PdfTextExtractor(reader);
for (int i = 0;i System.out.println(extractor.getTextFromPage(i+1));
}
String path = "/Users/daniel/Temp/mypdf.pdf";
PdfReader reader = new PdfReader(path);
int numberOfPages = reader.getNumberOfPages();
PdfTextExtractor extractor = new PdfTextExtractor(reader);
for (int i = 0;i
}
Langganan:
Postingan (Atom)