add tcpdf requirement
add some extra functions