also store a complete copy of the document
This commit is contained in:
		
							
								
								
									
										11
									
								
								addindex
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								addindex
									
									
									
									
									
								
							@@ -60,10 +60,13 @@ def process_pdf(path):
 | 
				
			|||||||
		result.append(data)
 | 
							result.append(data)
 | 
				
			||||||
		count += 1
 | 
							count += 1
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	#everything = pagedata()
 | 
						#TODO: current hack, so we can fts search several words over the whole document
 | 
				
			||||||
	#everything.page = 0
 | 
						#this of course uses more space, but in the end that's not a big problem
 | 
				
			||||||
	#everything.content = content.replace("\f", "")
 | 
						#Nevertheless, this remains a hack
 | 
				
			||||||
	#result.append(everything)
 | 
						everything = pagedata()
 | 
				
			||||||
 | 
						everything.page = 0
 | 
				
			||||||
 | 
						everything.content = content.replace("\f", "")
 | 
				
			||||||
 | 
						result.append(everything)
 | 
				
			||||||
	return result
 | 
						return result
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
def process_odt(path):
 | 
					def process_odt(path):
 | 
				
			||||||
 
 | 
				
			|||||||
		Viittaa uudesa ongelmassa
	
	Block a user