If you require to convert a Base64 string to a PDF file, please follow the below instructions:
Illustrated in the below image is an example of a flow where a Record Generator is used as a source step to store the Base64 string. It is then converted into a PDF file using the Byte Group mapper step and sent as an email.
- The image below is the Record Generator source step which has the Base64 string.
- A Calculator step is added to return only the Base64 string as a record as shown in the below image.
- A Byte Group Step is added to do the conversion. The Input Mode that is selected is Base64 and the Output Mode will be Byte as illustrated in the below image.
-
Add the Combine step after the Byte Group step.
-
Add the Run File destination step and select the Input as the Record and the File Type as a PDF which is shown in the below page.
- Add an Email destination step to send the PDF file to an Email address. In the Attachments section, please ensure that the Use Attachments checkbox is ticked and type an attachment name without the file extension as illustrated in the below image.