The Amiga RKM Devices manual has information on writing printer drivers for 2.x (which is pretty much the same as 3.x).
Not sure where to get information about writing OS4-specific printer drivers.
The printer drivers tend to be a mix of C and assembler.