The cable is for print DATA transmission, digital. If the cable is too long, that won't effect quality in the way a long analog cable (e.g. audio/video) would degrade quality - data would be transmitted erratically and the printouts would be completely messed up altogether.
Five to six meters is not a problem with quality cables though. Usually. YMMV.