Nutrient

Home

SDK

Software Development Kits

Low-Code

IT Document Solutions

Workflow

Workflow Automation Platform

DWS API

Document Web Services

T
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Company

About

Team

Careers

Contact

Security

Partners

Legal

Resources

Blog

Events

Try for free

Contact Sales
Contact sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

products

Web

Web

Document Authoring

AI Assistant

Salesforce

Mobile

iOS

Android

visionOS

Flutter

React Native

MAUI

Server

Document Engine

Document Converter Services

.NET

Java

Node.js

AIDocument Processing

All products

solutions

USECASES

Viewing

Editing

OCR and Data Extraction

Signing

Forms

Scanning & Barcodes

Markup

Generation

Document Conversion

Redaction

Intelligent Doc. Processing

Collaboration

Authoring

Security

INdustries

Aviation

Construction

Education

Financial Services

Government

Healthcare

Legal

Life Sciences

All Solutions

Docs

Guides overview

Web

AIAssistant

Document Engine

iOS

Android

visionOS

Java

Node.js

.NET

Document Converter Services

Downloads

Demo

Support

Log in

Resources

Blog

Events

Pricing

Try for free

Free Trial

Company

About

Security

Partners

Legal

Contact Sales
Contact Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

products

Products overview

Document Converter

Document Editor

Document Searchability

Document Automation Server

Integrations

SharePoint

Power Automate

Nintex

OneDrive

Teams

Window Servers

solutions

USECASES

Conversion

Editing

OCR Data Extraction

Tagging

Security Compliance

Workflow Automation

Solutions For

Overview

Legal

Public Sector

Finance

All Solutions

resources

Help center

Document Converter

Document Editor

Document Searchability

Document Automation Server

learn

Blog

Customer stories

Events

Support

Log in

Pricing

Try for free

Company

About

Security

Partners

Legal

Contact Sales
Contact Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Product

Product overview

Process Builder

Form Designer

Document Viewer

Office Templating

Customization

Reporting

solutions

Industries

Healthcare

Financial

Manufacturing

Pharma

Education

Construction

Nonprofit

Local Government

Food and Beverage

Departments

ITServices

Finance

Compliance

Human Resources

Sales

Marketing

Services

Overview

Capex-accelerator

Process Consulting

Workflow Prototype

All Solutions

resources

Help center

guides

Admin guides

End user guides

Workflow templates

Form templates

Training

learn

Blog

Customer stories

Events

Support

Pricing

Support

Company

About

Security

Partners

Legal

Try for Free
Contact Sales
Try for Free
Contact Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Services

Generation

Editing

Conversion

Watermarking

OCR

Table Extraction

Pricing

Docs

Log in

Try for Free
Try for Free

Free trial

Blog post

Using the PDF Converter from a SharePoint Workflow

Clavin Fernandes Clavin Fernandes

Table of contents

    Illustration: Using the PDF Converter from a SharePoint Workflow

    It is always interesting to see how your customers have a completely different look on the fantastic product you have been working on for months. After the initial release of our PDF Converter for SharePoint, the majority of the support calls we received were about how to use the product from a SharePoint workflow. Errrr…… we hadn’t really thought about workflows as it is so un-cool, related to SharePoint designer…and…and…and… actually we had never done much with SharePoint workflows.

    As much of our feature set and product development is driven by customer demand, it was time to skill up on workflows and  - dare I say it - SharePoint Designer. And you know what? It is pretty cool!As a result a new, workflow enabled, version of the PDF Converter is now available for download.

    What follows is an example of how to create a simple workflow in SharePoint Designer, which converts a file to PDF format as soon as it has been approved. If you prefer to use Nintex Workflow then have a look at this post.

    Before you start, make sure the PDF Converter for SharePoint has been installed and you have access to a site collection with the appropriate rights to create workflows. Some basic knowledge about creating and configuring document libraries is assumed.

    Create and configure the Document Library

    1. Create a document library named ‘Important Documents’.

    2. Once created, enable ‘Requires content approval’ on the library’s Settings > Document Library Settings > Versioning Settings screen.

    3. In the document library, create two folders: ‘Confidential Proposals’ and ‘Approved PDF Files’.

    Create and configure the work flow

    1. Start SharePoint Designer and open the site collection that contains the ‘Important Documents’ library.

    2. From the File menu select New > Workflow.

    3. On the first screen of the Workflow wizard, specify the following settings:

      • Name the workflow ‘Convert Approved documents to PDF Format’.

      • Select the ‘Important Documents’ list.

      • When creating a SharePoint Designer Workflow in SharePoint 2013 then please select Platform Type: SharePoint 2010 Workflow.

      • Select the 2nd and 3rd checkboxes to make sure the workflow is triggered whenever a document is created or (its status) is updated.

      • Click the ‘Next’ button to proceed.

    workflow wizard

    1. We are now ready to create the workflow. From the ‘Conditions’ menu select ‘Compare any data source’. This inserts the ‘If valueequalsvalue’ condition.

    2. Click on the first ‘value’ followed by the ‘display data binding’ (fx) button.

    3. Select ‘Current Item’ as the Source and select ‘Approval Status’ in the Field. Click the OK button to continue.

    4. Click on the second ‘value’ and select ‘Approved’ from the list.

    To avoid that the same workflow is executed on the converted PDF file after the conversion has taken place, we need to specifically exclude pdf files as follows:

    1. Add another ‘Compare any data source’ condition.

    2. Click on the first ‘value’ followed by the ‘display data binding’ (fx) button.

    3. Select ‘Current Item’ as the Source and select ‘File Type’ in the Field. Click the OK button to continue.

    4. Click ‘equals’ and change it to ‘not equals’.

    5. Click on the second ‘value’ and enter ‘pdf’.

    With the Conditions in place we can now add the Actions, which is where the magic happens.

    1. From the ‘Actions’ menu, select ‘Convert to PDF’. It may be hidden behind the ‘More Actions’ option.

    2. The following action is inserted:

      Convert this document to this url using the same file name and include / exclude meta data. Store the converted item details in List ID: Variable: List ID, Item ID: Variable: List Item ID.

      Let’s examine what the various options mean:

      • this document:  Specify which document to convert. Select the option and make sure ‘Current Item’ is selected.

      • this url: Specify the location the converted file will be written to. The following options are available:

        • Leave it empty: When no value is specified then the converted document is written to the same folder as where the source file is located.

        • Site Relative URL: By specifying a URL relative to the current site, e.g. ‘subsite/shared documents/PDF Files’, any folder location in the current site collection can be targeted. This is the option we want to use so enter Important Documents/Approved PDF Files.

        • Web Application relative URL: Using a URL that is relative to the entire web application, e.g. ‘/sites/Press Office/Public Documents/To Distribute’, any folder location in any site collection can be targeted.

      • the same file name: The name of the converted file can be specified here. In our case we’ll leave it empty to make sure we use the same name as the original document.

      • include / exclude meta data: In case of sensitive documents we may want to strip any custom SharePoint columns from the file. Assuming that our document library contains a column ‘Yearly sales forecast’, we want to select ‘Exclude’.

      • Variable: List ID: A new workflow variable named ‘List ID’ is automatically created. After the file has been converted, this variable will contain the ID of the list the converted file was saved to. This can later be fed into another action in order to manipulate this file further.

      • Variable: List Item ID: A new workflow variable named ‘List Item ID’ is automatically created. After the file has been converted, this variable will contain the ID of the item the converted file was saved to. This can later be fed into another action in order to manipulate this file further.

    3. Insert a new action named ‘Log to History List’ and enter ‘File converted to PDF Format’.

    4. Insert a new action named ‘Update List Item’ and click this list. We are now going to automatically mark the converted PDF file as approved.

      • From the ‘List’ dropdown select ‘Important Documents’.

      • Click the ‘Add’ button and set the field to ‘Approval Status’ and the value to ‘Approved’. Click OK. Please note that things have changed in SharePoint 2010, it is no longer possible to set the value of the ‘Approved’ field. For details and a workaround see this thread on our forums.

      • In the ‘Find the List Item’ area set the Field to ‘Important Documents:ID’.

      • Click the fx button next to ‘Value’, specify ‘Workflow Data’ as the Source and set the Field to ‘Variable: List Item ID’. Click OK.

      • Click ‘OK’ again to return to the Workflow Designer. It should look like the image below.

    workflow2

    Click the ‘Finish’ button to activate the workflow.

    Testing the work flow

    Testing the workflow is simple: create or upload an MS-Word file to the ‘Confidential Proposals’ folder, from the context menu select ‘Approve / Reject’ and approve the file.

    This will automatically start the workflow and after a few seconds the Workflow status should change to ‘Completed’ as shown in the screenshot below.

    workflow3

    Once the workflow has completed, you should see the PDF version of the document in the ‘Approved PDF Files’ folder.

    workflow4

    If an error occurs during the execution of the workflow then have a look at the following:

    1. Check the messages on the workflow status screen.

    2. Look in the Windows Event log.

    3. Look in the SharePoint trace log.

    Author
    Clavin Fernandes
    Clavin Fernandes Developer Relations and Support Services

    Clavin is a Microsoft Business Applications MVP who supports 1,000+ high-level enterprise customers with challenges related to PDF conversion in combination with SharePoint on-premises Office 365, Azure, Nintex, K2, and Power Platform mostly no-code solutions.

    Explore related topics

    Low-Code
    Free trial Ready to get started?
    Free trial

    Related articles

    Explore more
    LOW-CODELow-CodeAIOCRDigital Transformation

    Digital transformation is failing without intelligent document automation

    SDKINSIGHTSLow-CodeWorkflow AutomationDocument Converter for SharePointDocument SearchabilityDocument Automation ServerDocument Editor

    The rise of no-code and low-code: Are enterprises ready for the next document revolution?

    SDKTUTORIALSSDKLow-CodeDocument ManagementIndexingSearchingArchivingSharePointPower Automate

    How to manage large document libraries: Indexing, searching, and archiving

    Company
    About
    Security
    Team
    Careers
    We're hiring
    Partners
    Legal
    Products
    SDK
    Low-Code
    Workflow
    DWS API
    resources
    Blog
    Events
    Customer Stories
    Tutorials
    News
    connect
    Contact
    LinkedIn
    YouTube
    Discord
    X
    Facebook
    Popular
    Java PDF Library
    Tag Text
    PDF SDK Viewer
    Tag Text
    React Native PDF SDK
    Tag Text
    PDF SDK
    Tag Text
    iOS PDF Viewer
    Tag Text
    PDF Viewer SDK/Library
    Tag Text
    PDF Generation
    Tag Text
    SDK
    Web
    Tag Text
    Mobile/VR
    Tag Text
    Server
    Tag Text
    Use Cases
    Tag Text
    Industries
    Tag Text
    Resources
    Blog
    Tag Text
    Events
    Customer Stories
    Tag Text
    Tutorials
    Tag Text
    Features List
    Tag Text
    Compare
    Tag Text
    community
    Free Trial
    Tag Text
    Documentation
    Tag Text
    Nutrient Portal
    Tag Text
    Contact Support
    Tag Text
    Company
    About
    Tag Text
    Security
    Tag Text
    Careers
    Tag Text
    Legal
    Tag Text
    Pricing
    Tag Text
    Partners
    Tag Text
    connect
    Contact
    Tag Text
    LinkedIn
    Tag Text
    YouTube
    Tag Text
    Discord
    Tag Text
    X
    Tag Text
    Facebook
    Tag Text
    low-code
    Document Converter
    Tag Text
    Document Editor
    Tag Text
    Document Automation Server
    Tag Text
    Document Searchability
    Tag Text
    Use Cases
    Tag Text
    Industries
    Tag Text
    Resources
    Blog
    Tag Text
    Events
    Customer Stories
    Tag Text
    Support
    Help Center
    Tag Text
    Contact Support
    Tag Text
    Log In
    Tag Text
    Company
    About
    Tag Text
    Careers
    Tag Text
    Security
    Tag Text
    Legal
    Tag Text
    Pricing
    Tag Text
    Partners
    Tag Text
    connect
    Contact
    Tag Text
    LinkedIn
    Tag Text
    YouTube
    Tag Text
    Discord
    Tag Text
    X
    Tag Text
    Facebook
    Tag Text
    Popular
    Approvals matrix
    Tag Text
    BPMS
    Tag Text
    Budgeting process
    Tag Text
    CapEx approval
    Tag Text
    CapEx automation
    Tag Text
    Document approval
    Tag Text
    Task automation
    Tag Text
    workflow
    Overview
    Tag Text
    Services
    Tag Text
    Industries
    Tag Text
    Departments
    Tag Text
    Resources
    Blog
    Tag Text
    Events
    Customer Stories
    Tag Text
    Support
    Help Center
    Tag Text
    FAQ
    Tag Text
    Troubleshooting
    Tag Text
    Contact Support
    Tag Text
    Company
    About
    Tag Text
    Careers
    Tag Text
    Security
    Tag Text
    Legal
    Tag Text
    Pricing
    Tag Text
    Partners
    Tag Text
    connect
    Contact
    Tag Text
    LinkedIn
    Tag Text
    YouTube
    Tag Text
    Discord
    Tag Text
    X
    Tag Text
    Facebook
    Tag Text
    DWS api
    PDF Generator
    Tag Text
    Editor
    Tag Text
    Converter API
    Tag Text
    Watermark
    Tag Text
    OCR
    Tag Text
    Table Extraction
    Tag Text
    Resources
    Log in
    Tag Text
    Help Center
    Tag Text
    Support
    Tag Text
    Blog
    Tag Text
    Company
    About
    Tag Text
    Careers
    Tag Text
    Security
    Tag Text
    Pricing
    Tag Text
    Legal
    Privacy
    Tag Text
    Terms
    Tag Text
    connect
    Contact
    Tag Text
    X
    Tag Text
    YouTube
    Tag Text
    Discord
    Tag Text
    LinkedIn
    Tag Text
    Facebook
    Tag Text

    Copyright 2025 Nutrient. All rights reserved.

    Thank you for subscribing to our newsletter!

    We’re thrilled to have you join our community. You’re now one step closer to receiving the latest updates, exclusive content, and special offers directly in your inbox.

    This builtin is not currently supported: DOM

    PSPDFKit is now Nutrient. We've consolidated our group of trusted companies into one unified brand: Nutrient. Learn more

    This builtin is not currently supported: DOM

    PSPDFKit is now Nutrient. We've consolidated our group of trusted companies into one unified brand: Nutrient. Learn more

    This builtin is not currently supported: DOM

    New Feature Release. Tap into revolutionary AI technology to instantly complete tasks, analyze text, and redact key information across your documents. Learn More or View Showcase

    This builtin is not currently supported: DOM

    Aquaforest and Muhimbi are now Nutrient. We've consolidated our group of trusted companies into one unified brand: Nutrient. Learn more

    This builtin is not currently supported: DOM

    Integrify is now Nutrient. We've consolidated our group of trusted companies into one unified brand: Nutrient. Learn more

    This builtin is not currently supported: DOM

    Join us on April 15th. Join industry leaders, product experts, and fellow professionals at our exclusive user conference. Register for conference