render pdf methods