We want to generate PDF files containing placeholder images for ads. The ads will be delivered as PDF and should be stamped into the generated primary PDF file. Since we can not include the PDF ads directly from our conversion pipeline we need to stamp them. The placeholder images have the same size as the ad PDFs to be stamped.
I’m afraid, currently Aspose.Pdf.Kit for Java doesn’t allow you to loop through the images and then work with those images. However, looking into your scenario, one option seems viable and that is if you know the page number at which the image needs to be replaced and the index of the image at that page then you may use the replaceImage method to replace that particular image with the new ad. Please see if this helps in your scenario.
If you find any further questions, please do let us know.