Functionality to resize pdf-image/canvas and minor edits