Send an Image as PDF and Working with Muhimbi Converter Service Data-source in “PowerAPPs”

In my previous blogs, I have written about, how to Convert/Save “Pen-Input Control” as PDF

or “Save Images to SharePoint Online” etc. However, all my previous examples had a

dependency on Microsoft-FLOW.

In this example, I will Convert “Camera Control” Image to “PDF” and send it as an Email

“WITHOUT Microsoft-FLOW❗”, we will only use PowerAPPs.

Scenario:

  • Send to Email with Picture attachment as PDF using Muhimbi Converter Service Online.

Before you begin, please make sure the following prerequisites are in place:

Add Data Sources:

Datasource

Configure your PowerAPPs Screens with reference to screenshot:

Screenshot for Screen 1:

Screen1

Configure the Button on “Screen 1” :

This Button Control will:

      • Set the Image Camera Control to a variable.
      • Convert the Image to PDF(Using Muhimbi PDF Converter),
      • Navigate to “Screen 2”.

Perview

Formula for On-Select:

PreviewFormula

Set(ImageContent,Camera1.Photo);Set(PDF,MuhimbiPDF.convert(“Bill.jpg”,

ImageContent,”PDF”));Navigate(Screen2,ScreenTransition.Fade)

Screenshot for Screen 2:

Screen2.png

Email Body(label):

emailbodtl.png

Email Subject(label):

Subjectl.png

Email address(label):

Emaill

PDF Viewer:

PDFview

Send an Email will Processed File Content.

SendEmaiilbutton.png

Emailformula.png

Office365.SendEmail(Email.Text,Subject.Text,Body.Text,

{Attachments:Table({Name:”Bill.pdf”, ContentBytes:PDF.processed_file_content,

‘@odata.type’:””})})

I hope this article helps you to understand, how we can use “Muhimbi Converter Service Online” in Combination with PowerAPPs 🙂.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s