Documented the pdf resizing code