المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to read pdf file....



C# Programming
04-24-2009, 10:27 AM
hi..friend,

I tried PDFBox. i am working on window apllication dot net framwork 3.5 and as per your information i added .dll file-

# IKVM.GNU.Classpath.dll
# PDFBox-0.7.3.dll
# FontBox-0.1.0-dev.dll
# IKVM.Runtime.dll

in my application and also used this code to open pdf,here is my code...

string Ppath = "C:\\Documents and Settings\\Administrator\\Desktop\\sample \\KT_19100101\\AC_01\\0001.pdf";
PDDocument doc = PDDocument.load(Ppath );
PDFTextStripper pdfStripper = new PDFTextStripper();

but i got error message like..

expected='startxref' actual='13' org.pdfbox.io.PushBackInputStream@158d014
string aaa = pdfStripper.getText(doc);


so please send realted code to my mail id... bettiahamit@gmail.com
i really appriciated you.
i am waiting your response.

thx,
amit