Fix ConcurrentModificationException by collecting XObject names
- Changed to use a list to collect XObject names before removal.
- Avoids ConcurrentModificationException by modifying resources outside the iteration.
Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
* Implemented PdfImageRemovalService.java and PdfImageRemovalController.java. Image can be removed testing using Postman, but the file size doesn't change.
* Fix removal logic in service file to decrease file size.
* Implement "Remove Image" feature on the website
Updated the front-end code to integrate the "Remove Image" feature. The new functionality is now fully operational on the website, allowing users to remove images as expected.
* Add comments to PdfImageRemovalController and PdfImageRemovalService.
* Change the google material icon in navbar, homepage and remove-image-pdf.html.