fixed pdf resizing