C# Export Email to PDF EWS API

Siva Mani 6 Reputation points
2021-06-09T04:15:18.1+00:00

I am using EWS API 2.0. I wanted to download the entire email as a PDF file. I had used an approach to download the email body using the Chrome Print option. Any similar approach in this case? Please help!

Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,656 Reputation points
    2021-06-10T07:14:39.877+00:00

    Hi SivaMani-0897,
    First of all, there is no built-in function in Outlook to change emails to pdf format. You need to use some related add-ins or VBA code to convert emails to pdf files.
    And VBA macros use the functions of Word to save documents in pdf format.
    One benefit of this macro is that any hyperlinks in the message will continue to work, and any Internet images will also be automatically downloaded.
    So I suggest you try to use VBA macros.
    I also found some related links you can refer to.
    Saving Outlook email as PDF + Attachments
    VBA Macro in Outlook
    Convert MSG email to PDF file in C#
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.