Image replacement - Identifying right image


I would like to have a company logo on a page dynamically replaced.
How would I know if the image is the right one if there happen to be multiple images on the page ?

I notice the Ximage object has Name property. How or when does this get set ?
btw… I am converting a Word document to PDF and trying to loop through imageplacement collections to look for the right image to replace.

Please advise… Thanks



Thank you for contacting support.

We are afraid images may not be differentiated in the PDF generated by conversion of Word document. Name may be set while creating a PDF document with Aspose.PDF API where name can be used to differentiate images after adding them.