A semiconductor device has a semiconductor die with a die pad layout. An coupling optical system between the light source and the deflecting unit includes an optical coupling element that collimates the light fluxes and a line-imaging element that images the light fluxes near the deflecting unit in a sub-scanning direction. A drum hatch comprises a section of the cylindrical wall.