https://bz.apache.org/bugzilla/show_bug.cgi?id=60504
Bug ID: 60504 Summary: Add to public API POIXMLDocumentPart.removeRelation(POIXMLDocumentPart part) Product: POI Version: 3.16-dev Hardware: PC Status: NEW Severity: normal Priority: P2 Component: XSLF Assignee: dev@poi.apache.org Reporter: amanteaux+bzapa...@gmail.com Target Milestone: --- Currently the method POIXMLDocumentPart.removeRelation(POIXMLDocumentPart part) is protected. Would it be possible to change the visibility of this method to public? Indeed the method POIXMLDocumentPart.addRelation(...) is already public, so it makes sense to also make available to possibility to remove a relation. About my use case: I need to replace an image with another image. But I want to keep all the properties and the order of the original image in the replaced image. So what I am doing is replacing the blip embed attribute of the original image with the id of the new image. It works fine, but I also want to clean up the old image. So I need to remove the relation between the parent element and the blip id of the original image. That is where I need to call POIXMLDocumentPart.removeRelation(POIXMLDocumentPart part). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org