What type of connector is this 3-pin socket marked "DC24V" on a printer?
It's a fairly unique hole pattern, and the only connector I found at a cursory glance that matches is the Kycon KPJX-3S:



It is a 48VDC-rated power jack, and the applications listed in the datasheet seem in-line with the comment you made about it being on a printer.