AlessioLuciani / flutter-pdf-text

A plugin for Flutter that allows you to read the text content of PDF documents and convert it into strings.
MIT License
18 stars 45 forks source link

print text from the pdf #10

Closed rpriyanshu9 closed 3 years ago

rpriyanshu9 commented 4 years ago

Hi, I'm unable to print text from the pdf. The error I get says that the path is not defined properly or is null. How to get the path of the file as a string?

AlessioLuciani commented 4 years ago

You can understand what the directories structure is using for example the FilePicker package and picking up a file. This way you can print its path directly from the File object.

rpriyanshu9 commented 4 years ago

Thanks for the reply. I fixed the error above. But whenever I open more than one file using file picker I get a warning which is: W/PdfBox-Android(32241): Warning: You did not close a PDF Document I read the FAQs of Apache PDFBox, but there is no method named 'close()' in your package. If you can help me remove this warning it would be a great help.

hicnar commented 3 years ago

@rpriyanshu9 The warning "You did not close a PDF Document" issue is fixed in the most recent version of the plugin.

AlessioLuciani commented 3 years ago

Right, as @hicnar says, this issue has been solved.