Thanks for your inquiry. We have managed to replicate the issue and logged it as PDFNEWJAVA-34246 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue resolution progress via this forum thread.
However, as a workaround you can use SetFile() method to assign image to Image object. Hopefully it will help you to accomplish the task.
Pdf pdf = new Pdf();
Section sec = pdf.getSections().add();
aspose.pdf.Image img = new aspose.pdf.Image(sec);
We are sorry for the inconvenience caused.