The define of TCPDF constants was causing an error 

The define of TCPDF constants was causing an error  (Constant PDF_PAGE_FORMAT etc. already defined), if you use TCPDF within own plugins and use the print PDF feature of LS.

The new if-statements avoid the error, if the constant is tried to define again.