• German
  • Docs
  • Knowledge
  • F.A.Q
  • Forum
  • Media
  • Courses
  • Marketplace
  • Login
  • Try for free
  • German
  • Docs
  • Knowledge
  • F.A.Q
  • Forum
  • Media
  • Courses
  • Marketplace
  • Login
  • Try for free
home/Knowledge Base/Plugins/Generating a PDF with Simplifier via Plugin

Generating a PDF with Simplifier via Plugin

Written by Daniel
June 2, 2021

Abstract

In this article, you will learn how to generate PDFs in your Simplifier applications.

Prerequisites

  • A customized PDF Template (see Create a PDF Template via Plugin)

Step 1 – Integration into your Application

To generate a PDF in your application, go to the Process Designer, and add a Business Object shape into the Story map where the PDF should be generated.

Select the Business Object “SF_PDF” and select the call “generate”. This business object is part of the Simplifier Standard Content and should already be available.

If you’re missing the Business Object, please visit our marketplace and download the latest version of the StandardContent.

Open the input mapping dialog and fill the parameters templateName and data. The template name could be filled by using a constant value. The data parameter is optional – depending on if your template should display dynamic data – and should be filled using variables.

In the output mapping the base64 data of the generated PDF is returned and can be mapped to a UI widget of type “PDFViewer_PDFJS“.

Step 2 – Configurations for the PDF

The Server-Side Business Object ‘SF_PDF‘ has two functions: ‘generate‘ and ‘generateWithConfig‘.

If you simply want to show your data on a PDF, using the function ‘generate’ will be sufficient. However, if you want to add some configurations, like the page size or page orientation, use ‘generateWithConfig’.

‘GenerateWithConfig’ has an additional parameter: ‘configJSON’. In this parameter, you can set your configurations in JSON format.

Example:

var oConfig = {
    "orientation": "Landscape",
    "page-size": "A4",
    "margin-top": "1in",
    "margin-bottom": "1in",
    "margin-left": "1in",
    "margin-right": "1in",
    "footer-center": "[page] / [toPage]"
};

Example Application

Download the example application from the Simplifier marketplace and import the file into your Simplifier instance.

After importing the application and openening it, you should be greeted by a screen displaying a table with some dummy data on the left side and an empty PDF viewer on the right side.

Pressing the Generate PDF Button will generate and display a PDF. Please make sure that the TestTemplate is available on your Simplifier instance.

In case, you want to test the running example with your own PDF template, you just have to replace the PDF template name in the SF_Example_PDF application.

Go to the process designer and open the story “Generate PDF” and change the constant value of templateName in the input mapping of the Business Object “SF_PDF-> generate” which is currently set to TestTemplate.

The data send to the the PDF Plugin is a global variable with a pre-defined value. You can find it on the data workbench.

A user needs permission to be able to generate a PDF. Make sure the characteristic Generate PDF of the permission object Plugin PDF Generation is granted to the user.

Furthermore the user needs permission to execute the SF_PDF business object.

Tags:designerpdfUItemplatefooterdynamicpagetextto

Was this article helpful?

Yes  No
Related Articles
  • Fine-tuning and Running Custom AI Models in Simplifier
  • Using the Simplifier Teams App
  • How to integrate value help and suggestions in user inputs
  • Use ContentRepository Plugin to handle Files from your Windows Share Volume
  • How to integrate Simplifier in CI/CD pipelines
  • How to use Google reCAPTCHA v3 Essentials
Leave A Comment Cancel reply

You must be logged in to post a comment.

Plugins
  • Generating a PDF with Simplifier via Plugin
  • Plugin development with NodeJS
  • Create a PDF Template via Plugin
  • PDF Templates: make the Header/Footer content dynamic
  • How to use Simplifier Content Repository Plugin
  • Use ContentRepository Plugin to handle Files from your Windows Share Volume
Knowledgebase Categories
  • Getting Started 4
  • Best Practices 3
  • How to's 26
  • Layout & Design 4
  • Widgets 8
  • Cloud Services 6
  • Database Handling 1
  • Integrations 10
  • Plugins 6
  • Mobile Client 2

  How to use Query Options in ODataV2 Connector

Create a PDF Template via Plugin  

GetApp Review

User Reviews

capterra

User Reviews

For AWS Customers

For SAP Customers

  • Contact | Imprint | Privacy | © 2025 Simplifier AG. All Rights Reserved.

  • English
  • German

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.