Straight into the printer, no extra extension
With a USB-B plug already on the device end, nothing has to go between the printer and the cable. The active part boosts the signal and can take auxiliary power from a phone charger with a USB-A output of at least 5 V / 1 A when needed. Two LEDs show power and device connection. No drivers are needed: Axagon lists Windows XP to 11, Windows Server 2003 to 2022, Mac OS X 10.x and Linux (kernel 2.6.x and later).