title: Cleaning up unused images in PDF page resources
body: <p>Please forgive me if this has been asked but I have not found any matches yet.</p>
  
  <p>I have some PDF files where images are duplicated on each page's resources but never used in its content stream. I think this is causing the PDFSplit command to create very bloated pages. Is there any utility code or examples to clean up unused resources like this? Maybe a starting point for me to get going?</p>
  
  <p><a href="https://i.stack.imgur.com/60Doe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/60Doe.png" alt="Screenshot of the images"></a></p>