adding some basic prctopdf changes