-
| 
         i want to remove one image from pdf the code like this the out is: i want ntkoimage20210206232933 delete, how can i do  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            JorjMcKie
          
      
      
        Sep 30, 2021 
      
    
    Replies: 1 comment 8 replies
-
| 
         Use a redaction annotation: 
 bbox = page.get_image_rects(7)[0]  # get bbox
bbox = bbox.irect  # enlarge to include integer pixels
page.add_redact_annot(bbox)  # define redact annot
page.apply_redactions(images=fitz.PDF_REDACT_IMAGE_REMOVE) | 
  
Beta Was this translation helpful? Give feedback.
                  
                    8 replies
                  
                
            
      Answer selected by
        pycgo
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Use a redaction annotation: