i am using the following code for verifying text in pdf. Its working for chrome, but for firefox i get the option weather to open or save the pdf file.
String path=getDownFilePath(filename,pdf); frFile = new File(path);
try { PDFParser parser = new PDFParser((RandomAccessRead) new RandomAccessFile(frFile,"r")); parser.parse();
cosDoc = parser.getDocument(); pdfStripper = new PDFTextStripper();