tests for width and height of pdf