added ability to set pdf file version