Laserfiche Workflow 8 can add sticky notes to documents, but is unable to remove them. By configuring and adding any of these six different scripts into your workflow design, annotations can be quickly removed from any document page.
- Laserfiche Workflow 8.3 has a new “Delete Annotation” activity – but this activity works only with sticky notes added using the “Add Sticky Note” activity in that same workflow and can only remove one note at a time. Therefore, the majority of these scripts will still come in handy.
- Due to changes in the code reference libraries, the following scripts may not work with Laserfiche Workflow 8.3 unless they are properly migrated. Information about Workflow 8.3 migration can be found in the Workflow 8.3 Migration Guide.
Brief descriptions of the scripts
Script 1: Removes all annotations from a document.:
- Example: A seven-page document has 10 sticky notes, five redactions, three attachments and two text boxes, all of which are spread out across various pages. By placing Script 1 inside a Toolkit Script (VB.NET) activity in your workflow, all of the annotations will be permanently removed when the Toolkit Script activites.
Script 2: Removes all annotations of a specific type from a document.
- Example: A four-page document has 13 sticky notes and seven highlights spread out across various pages. By placing Script 2 inside a Toolkit Script (VB.NET) activity in your workflow, all of the sticky notes will be permanently removed when the Toolkit Script activity runs (the highlights will not be removed).
Script 3: Removes all annotations from a specific page of a document.:
- Example: A four-page document has five sticky notes and three highlights on page 1. By placing Script 3 inside a Toolkit Script (VB.NET) activity in your workflow, all of the annotations on page 1 will be permanently removed when the Toolkit Script activity runs.
Script 4: Removes all annotations from a document that are of a specific type and on a specific page.
- Example: A two-page document has 11 sticky notes and three redactions on page 1. By placing Script 4 inside a Toolkit Script (VB.NET) activity in your workflow, all of the sticky notes on page 1 will be permanently removed when the Toolkit Script activity runs (the redactions will not be removed).
Script 5: Removes one specific sticky note (anywhere in the document) that was previously added by Workflow.
- Example: A workflow is designed to route documents to users for manual processing. After routing a document, the workflow uses an Add Sticky Note activity to place a sticky note on the document with instructions on how it should be processed.When the document has been processed, Script 5 is used to automatically remove the previously added sticky note, since it no longer serves a purpose. By placing Script 5 inside a Toolkit Script (VB.NET) activity in your workflow and ensuring the activity runs after the Add Sticky Note activity, the sticky note will be permanently removed when the Toolkit Script activity runs.
Script 6: Removes all annotations that contain a specific string of text from a document. The annotations must be of a specified type (sticky note, text box, or callout only) and can appear on any page in the document.
- Example: The Brown Bag Company uses a series of workflows to automate a document’s approval process. Each workflow adds various sticky notes to the document, which provide helpful information for the approvers.At the end of the approval process, the company wants to remove all of the sticky notes added by the various workflows, but leave any sticky notes added by repository users. Since each sticky note that was added by Laserfiche Workflow contains the words “Invoice Approval Instructions (added by WF),” they can use Script 6 to locate all of the sticky notes that should be removed and delete them from the document.
Script configuration instructions:
A detailed explanation and instructions for configuring each script can be found in the white paper titled “Simple Scripting in Laserfiche – Removing Annotations in Workflow 8.” This white paper, along with all of the scripts, can be found in the zip file that you can download here.
Please note: a Support Site login is required to download this zip file.
This whitepaper is written specifically for users who have had little or no experience with any type of programming language.