Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Unable to read pdf file contents.

$
0
0
I am trying to read the text from a pdf file. I am using the evaluation version of asponse to test. I get the following output regardless of the input file. 

Evaluation Only. Created with Aspose.Pdf. Copyright 2002-2015 Aspose Pty Ltd.

Is there a limitation on what the api can do when using the evaluation version. My code looks like this.

  Document pdfDocument = new Document("C:\\docs\\input.pdf");
TextAbsorber textAbsorber = new TextAbsorber();
pdfDocument.getPages().accept(textAbsorber);
String extractedText = textAbsorber.getText();
System.out.println(extractedText) ;

Another test I did was to add text to existing pdf. That did not work either.

Any help will be appreciated.

Viewing all articles
Browse latest Browse all 3131

Trending Articles