If by .msg you mean Outlook msg files, those are stored as OLE Structured Storage Documents, and for that OLE::Storage might be helpful to look at. See this link for (possibly outdated) details. And if you can get the HTML out of that file, converting with PDF::FromHTML might be what you need for the next step.