Skin

A 40 year old male developed persistant oral ulcers followed by multiple flaccid bullae on trunk and extremities. Direct immunofluorescence examination of a skin biopsy showed intercellular IgG deposits in the epidermis. The most probable diagnosis is: