updated for tcpdf 6.0
added exceptopn for when host has open_basedir restriction in effect