Why a pdf attachment is not opened ?