public Task[] extractPDF(Task aTask)
	{		
		Task task = aTask;		
		task.setType(AtlasJob.J_EXPORT_HTML);

		String filename = task.getFilename();			
		String folderPath = task.getFolderPath();		

		if (!JLogger.checkForSize(filename, folderPath, org.Setup.FILE_SIZE_LIMIT_HTML)){				
			//parserCTRL.println_Doc("@@@ Document \"" + filename + "\" has been deleted due to small size");			
			return null;
		}

		JHtmlParser htmlParser = new JHtmlParser();
		task = htmlParser.parseHTML(task);
		Set<Task> outputTaskSet = new HashSet<Task>();			

		Map<String,String> map = task.getContentAll();						

		String url = "";		
		Set<String> set = map.keySet();
		Iterator<String> iter = set.iterator();	
		while (iter.hasNext()){

			String key = iter.next();			
			String mapValue = map.get(key);

			if (mapValue == null || !mapValue.contains("http://"))
				continue;				

			String[] vals = mapValue.split("[;]");
			for (int i = 0; i < vals.length; i++){
				if (vals[i] != null || vals[i].length() > 0){

					url = vals[i].trim();					
					String filename_PDF = url.substring(url.lastIndexOf("/") + 1, url.length());
					String folderPath_PDF = folderPath + org.Setup._S_ + "files" + org.Setup._S_;

					if (!filename_PDF.endsWith(".pdf"))
						continue;

					/*if (url.startsWith("http://arxiv.org")){						
						linkTask.putContent(key, mapValue);
					}*/

					if (url.startsWith("http://cdsweb.cern.ch")){

						AtlasTask linkTask = new AtlasTask(task.getId(), task.getJobId(), AtlasJob.J_CRAWL);
						linkTask.setUrl(url);
						linkTask.setFolderPath(folderPath_PDF);					
						linkTask.setFilename(filename_PDF);
						linkTask.setExtension(".pdf");						
						linkTask.putContent(key, mapValue);						
						outputTaskSet.add(linkTask);

						task.setType(AtlasJob.J_EXPORT_PDF);
					}
				}		
			}			
		}			
		outputTaskSet.add(task);
		Task[] tasks = (Task[])outputTaskSet.toArray(new Task[outputTaskSet.size()]); 		

		return tasks;
	}