An example that shows you how to replace images in an existing PDF document.

For demonstration purpose we change the image based on their orientation to a new image.