Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1756

How to extract the text from pdf file using PDFBOX library

From deepandroid <deepa.m8900@gmail.com>
Subject How to extract the text from pdf file using PDFBOX library
Newsgroups comp.programming
Message-ID <Sc6dnZ_KmPO-KUzSnZ2dnUVZ_j-dnZ2d@giganews.com> (permalink)
Date 2012-06-08 03:13 -0500

Show all headers | View raw


I have tried to extract the pdf document to text using pdf box library in Android
public static void read(String[] args) throws IOException{
		 
		PDDocument doc = null;  
        try {  
            doc = PDDocument.load("C:\\Android.pdf");  
            PDFTextStripper stripper = new PDFTextStripper();  
            String text =stripper.getText(doc);  
            
        } finally {  
            if (doc != null) {  
                doc.close();  
            }  
        }  
But getting error in the logcat that Could not find method org.apache.pdfbox.pdmodel.PDDocument.load, referenced from method com.packagename.classname.method...
moreover i had the classpath and path in system variables and jar file too 
why it so coming errors!!!
---
Deepa.M
Android Developer

Back to comp.programming | Previous | Next | Find similar


Thread

How to extract the text from pdf file using PDFBOX library deepandroid <deepa.m8900@gmail.com> - 2012-06-08 03:13 -0500

csiph-web