made pdf responsive to window resizing