1)Having come to the capital he found a job at a printer"s shop. - Participle I - причастие 1
2)He told us about his having bought the new equipment. - Gerund - герундий
3) I am very sorry not to have met you. - Infinitive - инфинитив
4) We are sure of having read this journal. - Participle I - причастие 1