Article last updated on the 12th of April, 2024.
The contents of this article may be subject to change due to ongoing development of WorkPoint Automate.
Contents
1. Case description
When working with documents which contains sensitive data it is often necessary to be able to manipulate said documents in various ways.
One example could be when a document is confidential and not to be shared with anyone outside the organization. In that case, it is customary to watermark the document with "CONFIDENTIAL" on all pages.
An example of how this could look is given in the following image:
In this case, we will work with the following requirements:
As a case manager, I would like to be able to:
- Run a process in which I can select a PDF document and watermark it with the text "CONFIDENTIAL".
- The watermark text should be red and the message should be rotated 45 degrees and centered both vertically and horizontally.
2. Implementation
For this case, we will work with a PDF document stored on a case registered under a specific client.
Here's what the document looks like:
We are gong to implement a process for watermarking the document.
We begin in the Process Builder inside the WorkPoint 365 Administration:
- We begin by clicking "New" to create a new process.
- In this instance, we create the new process from scratch.
- We title the process "Watermark confidential".
- Next, we select "User Process" and place the process in the "Item Processes" group.
- Finally, we click the "Begin" button to create the new process.
For this process, we are going to use two steps: a Search item form, and an Edit and manipulate PDF step.
Our Search item form is configured as follows:
With this configuration, we will be able to search for documents inside the Documents library of the current case site. We have defined a view for the library which only shows PDF documents, which we use as a default view for the search form. We have also selected to not allow multi-select.
The Edit and manipulate PDF step is configured as follows:
- In the Step Input field in the General tab, we select the output from the Search item form.
The following settings are configured using trial and error to find suitable settings for each field. Depending on settings such as font and font size, you may need to tweak the settings to match your desired look of the watermark.
- In the Options tab, we could set a Compress level, but since our PDF document is not very large or contains images, we leave this field blank.
- Next, we add a new configuration of type "Text Watermark", which we title "Confidential watermark".
- In the "Text For Watermark" field, we can enter "CONFIDENTIAL". If we had a custom form with a text field before this step, we could also have referenced that field and make the user be able to define their own text to use for the watermark.
- In the "Font" field, we select "Arial", for no particular reason.
- For "Font size", we select 80.
- To emphasize the confidentiality, in the "Font style" field, we select "Bold".
- Per the requirements of the case, we select a red for our watermark font color.
- Also per the requirements from the case, we rotate the watermark by 45 degrees.
- So that the watermark does not obscure the text in the document, we set the transparency of the watermark to 25%.
- We use the Margin settings to move the rotated watermark text so that it appears centered. These settings might need to be changed depending on text font and size.
- For the alignment options, we select Center and Middle.
- In the "Pages To Watermark" field, we select "All".
These options should place a watermark relatively centered with a 45 degree rotated "CONFIDENTIAL" text in red using the Arial font.
In the next section, we will run the process on a PDF document.
3. Execution
In this section, we will run the Watermark confidential process we created previously.
A My Tools button has been set up on case sites to run the process. Let's see it in action.
We begin in a case site:
One of the documents on the case is the "Evaluation" PDF document. This is the document in which we will add the watermark.
The document in it's current form is as follows:
Let's now run the process and watermark the document with the confidential text:
- In the My Tools panel, we click the button to run the Mark confidential process.
- In the Search item form step, we select the PDF we want to add the watermark to and click "Continue".
The Edit and manipulate PDF step now runs and adds the watermark to the document:
- After the process is succeeded, we click the "Close" button.
Let's open the PDF and see if the watermark was added correctly:
We can see that the "CONFIDENTIAL" watermark was added to the document in the format specified in the requirements.
Comments
0 comments
Please sign in to leave a comment.