Minggu, 31 Juli 2011

Java DBF Library

http://sarovar.org/docman/view.php/32/23/javadbf-tutorial.html


XbaseJ

Csharp Read Text File

StreamReader StreamReader = new StreamReader(op.FileName);
while ( StreamReader.Peek()>=0 ){
MessageBox.Show(StreamReader.ReadLine());
}

Sabtu, 30 Juli 2011

PDF iTEXT iNSERT iMAGE

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));
}