If you meet someone for the first time, you can say, as a way of being polite, that it is a pleasure to meet them. You can also ask for the pleasure of someone's company as a polite and formal way of inviting them somewhere.
[politeness] 'A pleasure to meet you, sir,' he said.
it was a note from Mrs O'Dowd, requesting the pleasure of Mrs Osborne's company thatvery evening.