| 
			
			 | 
		#1 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 80 
				Karma: 10 
				Join Date: Jan 2024 
				Location: Vietnam 
				
				
				Device: PC, Kindle ppw5, Boox Go 6 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Error while editing and updating the metadata of the PDF file
			 
			
			
			I'm someone who isn't very tech-savvy or familiar with technical issues. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Occasionally, when I try to edit and update the metadata of a PDF file, I encounter problems where the metadata can't be embedded into the file. For example, I received this error: calibre, version 8.4.0 Failed for some files: Failed to embed metadata into some book files. Click "Show details" for details. The PDF format of *Thiền quán con đường của Tuệ giác*: Traceback (most recent call last): File "calibre\utils\podofo\__init__.py", line 36, in set_metadata ... podofo.Error: PdfErrorCode::InvalidXRef Callstack: #0 Error Source: private\PdfDeclarationsPrivate.cpp(1404), Information: Stack overflow From what I understand, this issue is caused by the file itself. However, is there any way to repair or fix this problem? I'm not comfortable modifying files in technical or advanced ways. Thank you very much for your time and help.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It's caused by a damaged PDF file, there are various tools that can be used to repair PDF files but none built into calibre.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Error during updating metadata | DrChiper | Library Management | 14 | 10-06-2023 12:29 PM | 
| Editing and updating metadata on the device | JJ Johnson | Library Management | 12 | 01-20-2022 09:51 PM | 
| Error while exporting opf metadata into pdf file | liametoh | Library Management | 1 | 05-22-2020 12:05 AM | 
| Error when editing metadata - Old file/folder can't get deleted | Googa | Library Management | 2 | 08-16-2017 04:09 AM | 
| Error on updating metadata in 0.6.44 | jomaweb | Calibre | 3 | 03-06-2010 01:05 PM |