I want to show a pdf file within my application. I have kept pdf file in my asset folder and i am using itextpdf 5.1.1 library.
I am just trying to show the pdf using this library but not getting success. where as i
am getting the page numbers of the pdf file using the code:
InputStream inputStream = this.getResources().getAssets().open("pp.pdf");
PdfReader pdfreader = new PdfReader(inputStream);
int pageNumber = pdfreader.getNumberOfPages();
Can anybody please help.. how to show pdf using itextpdf library.
Thanks & Regards
Hi by using the following code we can load the PDF.
If you want to load the pdf inside the web view then just write..
Hope this work.