My header and footer are getting inverted on adding them to a PDFs that I merged from multiple PDFs. #3352
-
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            JorjMcKie
          
      
      
        Apr 6, 2024 
      
    
    Replies: 1 comment 1 reply
-
| 
         Immediately after loading a page execute   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        Harshitttttttt
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    


Immediately after loading a page execute
page.clean_contents(). This should solve the problem. See also here.