public Map<String, Object> parsePDFFromWebpage(String url) {
		DefaultHttpClient httpclient = new DefaultHttpClient();
		Map<String, Object> map = new HashMap<String, Object>();
		try {
			HttpGet httpGet = new HttpGet(url);
			HttpResponse response = httpclient.execute(httpGet);
			HttpEntity entity = response.getEntity();
			InputStream input = null;
			if (entity != null) {
				try{
					input = entity.getContent();
					BodyContentHandler handler = new BodyContentHandler(10*1024*1024); 
					Metadata metadata = new Metadata();
					AutoDetectParser parser = new AutoDetectParser();
					ParseContext parseContext = new ParseContext();
					parser.parse(input, handler, metadata, parseContext);
					map.put("text", handler.toString().replaceAll("\r", " "));
					map.put("title", metadata.get(TikaCoreProperties.TITLE));
					map.put("pageCount", metadata.get("xmpTPg:NPages"));
					map.put("status_code", response.getStatusLine().getStatusCode() + "");
				} catch (Exception e) {                     
					e.printStackTrace();
				}finally{
					if(input != null){
						try {
							input.close();
						} catch (IOException e) {
							e.printStackTrace();
						}
					}
				}
			}
		}catch (Exception exception) {
			exception.printStackTrace();
		}
		return map;
	}