After some time away from this project (and BTW I have gotten very good reviews from the first iteration), I'm trying to add more features to my pptx4j tool. I am starting with a PPTx as a template and using pptx4j to make custom and/or user-driven updates on the fly, generating a new PPTx.
At the moment, I'm concentrating on adding and replacing images, since I failed in getting this to work in version 1. I am trying to add a Pic, its Image, and their Relationship to the document. My current problem is that the Image is not showing up. I have noticed that my Image does not have Compression set. (not sure if that is the cause or not, but...) I have found that setCompression is only available on the XML side, not the openpackaging side.
I went back to the docs, and it recommends reading in a pptx with the openpackaging PresentationMLPackage class. I suppose that is why I did it that way to begin with. Are the openpackaging and XML classes completely separate? i.e., if I start with this openpackaging class, am I able to "cross over" and use XML classes too?
Or am I so far out in the weeds that my question doesn't even make sense? (I have also wondered if I should be reading in my template and creating a totally new object, rather than trying to update the template object itself).
Any advice would be appreciated.