• Resources
    • Documentation
    • Knowledge Base
    • Forum
    • Webinars and Videos
    • Courses
    • FAQ
    • Changelog
    • Blog
    • Swag Shop
  • Marketplace
  • Login
  • Resources
    • Documentation
    • Knowledge Base
    • Forum
    • Webinars and Videos
    • Courses
    • FAQ
    • Changelog
    • Blog
    • Swag Shop
  • Marketplace
  • Login
home/Knowledge Base/How to's/How to integrate and use external libraries in Simplifier Apps

How to integrate and use external libraries in Simplifier Apps

269 views 1

Written by Christian Kleinschroth
December 10, 2020

Prerequisites

You need a zip file containing the desired Javascript library code (.js, or .min.js) [e.g., tesseractJS-2_1_4].

Step 1 – Upload the library js code

From the Simplifier Dashboard click ‘Applications’ and select the ‘libraries’ tab:

Click ‘+’ to upload your library code:

Enter ‘name’ and ‘version’ details, and upload the zip file:

Step 2 – Integration code

Enter the code snippet which should be used to integrate the Javascript code of the library:

In this case, we use the ‘addScript’ method for integration. The first parameter is the relative path to the Javascript file in your zip folder (.js or .min.js). The second parameter defines a name which can be used to specify dependencies between this library and possible others, which are also integrated via ‘addScript’ in this code block (cf. Example – Simplifier Documentation).

Further available integration methods (e.g., for integration .css styles) can be found in the Simplifier Documentation.

Click ‘Save’ to finish the upload and integration step.

Step 3 – Add library to Simplifier App

Now, go to your Simplifier App, where you want to use the library. Open the ‘libraries’ tab in the Application Editor:

Click ‘+’, use the search bar to find your library, and select it:

Now, the library is added to the list of available libraries:

Step 4 – Use library in Simplifier App

The library can now be used in Scripts in the Process Designer:

Please be aware that a new file upload (Step 1), changes concerning the script (Step 2), or app (Step 3) integration take only effect when deploying the app.

Was this article helpful?

1 Yes  No
Related Articles
  • REST: Use a CSRF Token and a Cookie to authorize Requests
  • Use the Adobe PDF Embed API in your Simplifier Application
  • Simplifer setup with recommended environment using docker-compose
  • Logs and Monitoring in Simplifier
  • Version and Release Management in Simplifier
  • Dynamic where-clause and repeatable statement
Leave A Comment Cancel reply

You must be logged in to post a comment.

Latest Articles
  • REST: Use a CSRF Token and a Cookie to authorize Requests
  • Use the Adobe PDF Embed API in your Simplifier Application
  • Process Designer: Keeping an overview
  • Contact | Imprint | Privacy | © 2022 Simplifier AG. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.