To export contacts from Microsoft Outlook, you'll need to use Outlook's "Export to a file" feature, which is built-in.
In the top menu of Excel select Data > Get Data > From File > From PDF. Browse your files and select the PDF with the table ...
To export your iPhone contacts to an Excel spreadsheet, you should first sync your contacts with iCloud. Here's what you need to know.