How to Create a Logic App to Protect the PDF with Password

Azure Logic Apps

Logic App is a cloud-based service that allows us to react to an event in one service (such as SharePoint online) and do something with the data from that event into another service (such as Twitter). It makes it practical and simple for business processes. The users build workflows that automatically do some business tasks and processes across applications and services. We can connect our business-critical apps and services with Azure Logic Apps, automating our workflows without writing a single line of code.

Before reading this article, please go through some important article links mentioned below.

Here, we will see how we can protect the pdf with password and store into Dropbox automatically.

Here, we need to connect PDF4 and Dropbox.

Prerequisites

  • Microsoft Azure Account
  • DropBox Account
  • PDF4me Account

Follow the below steps to build a Work Flow using a template.

Step 1. Log into https://portal.azure.com/.

In the dashboard, choose to create a resource and click on Integration. Now, select "Logic App".

Microsoft Azure

Step 2. Enter the name you want to assign to the logic. Select the subscription and resource group where you organize related resources and location where your logic app is stored. Then, click on "Create".

Create

Here is the dashboard. Click on "Logic App Designer".

Step 3. Now, click on the Blank Logic App.

Blank Logic app

Step 4. Configure the data by signing into the Dropbox and PDF4me. Click on “Add a Trigger”

Add trigger

  • Search for Dropbox in the search bar and choose the trigger.
    Dropbox
  • Sign in to dropbox.
    Sign-in
  • We need to give permission to access our accounts.
    Allow
  • Next, choose Folder and how often do you want to check for item.
    Check for item

Step 5

  • Now search for PDF4me.
    Sign PDF
  • Signin PDF4me
    Login
  • Then, choose the action for the workflow.
    Actions
  • Choose File Content, File name, set password in Password, set PDF Permission-All [ we can also set copy, modify, print etc]
    Protect document

Step 6. Now, connect Dropbox to store the pdf file

  • Next, Choose File path, File Name, and File Content for saving the pdf file from PDF4me.
    Create file
  • The final workflow will be like this.
    Create file

Now, let us save and run the workflow.

Workflow

Output

Upload the file in the dropbox in Azure Logic App Folder.

Dropbox

Now, the password set to pdf file and save it in to PDF folder in Dropbox.

Dropbox

Let’s open the file. We can seen “This file is password protected” window

Password protected

Now, Enter the password to open the file

Password

File opened.

Dummy.pdf

Its successfully run.

File created

Summary

I hope you understood how to protect the PDF file with password and save it into Dropbox and how to run it. Stay tuned for more Logic App articles.