setPdfVersion() and error messages for missing enviornment variables