.pdf: File category: documents: Description: PDF – is a cross-platform extension, which is necessary for the visualization of printed materials in electronic form. It is developed by Adobe Systems using separate PostScript resources. PDF documents can exist separately from the OS or hardware tools with which they were developed.
This article demonstrates how to convert an email message to PDF with the help of Power Automate (Microsoft Flow).
We will take a hiring contract text as a body of our message:
- Dim stream As Stream = New MemoryStream(docArray) stream, Spire.Doc.FileFormat.Docx) doc.SaveToStream(stream, Spire.Doc.FileFormat.PDF).
- The “Base64 to PDF” converter will force the decoding result to be displayed as a PDF file, even if it is a different file type. Therefore, if you are not sure that your Base64 string is a PDF, use the Base64 to file converter since it is capable of displaying various file types. In any case, feel free to give it a try, since this converter.
- How To Convert c#2005.net web template to vb2005.net Forms Template I need Convert c#2005.net web template to vb2005.net Forms Template There are some free c# to vb converters out there which will allow you to upload a project and convert it to vb.
You can use different Power Automate (Microsoft Flow) connectors to receive messages. Some examples:
Office 365 Outlook
Outlook.com
Gmail
In this example, we will convert email messages to PDF when they arrive in Office 365 Outlook inbox. Then we will store PDF files to a SharePoint document library. You can configure your Flow to store documents in any other location. For example, in Dropbox.
This is how complete flow looks:
Here is step by step description for the flow.
Binary Octet Stream
Flow trigger to receive email messages
Firstly you need to add a trigger to start Flow when a new email arrives. We use Office 365 Outlook trigger called “When a new email arrives”.
Convert HTML to PDF
Convert Octet Stream To Pdf Converter
This is an action from Plumsail Documents connector.
Just put body variable from trigger output into “Source HTML” parameter of the action. You can use email subject as a file name. Then you can receive PDF file content as an output of the action.
You can find more information about this action here.
Create PDF file
Now you need to store PDF file somewhere. In our example, we use “Create file” action from SharePoint connector to store the PDF document into SharePoint document library. We use email subject as a file name.
You can use any other connector to store PDF document into your system.
Hint
Convert Octet-stream To Pdf C#
You can use Convert HTML to PDF action in a different scenario. For example, you can generate HTML document from a template and then convert it to PDF. This is useful for automatic generation of invoices, contracts, etc.