This demo simply adds an image to an existing PDF document.

It also shows you how to normalize the coordinate system of the page in view to an existing page rotation.