PDF Tools

Overview

Contains multiple Smart Services and Functions for interacting with PDF Documents.

Key Features & Functionality

Smart Services:

  • Merge PDF - Merges multiple PDF documents into a single document.
  • Extract PDF Pages - Extracts a range of pages from an existing PDF into a new PDF.
  • Fill PDF - Populates the fields of a PDF Form and optionally flattens it disallow further changes.
  • Create PDF Content - Allows text to be added to a PDF with control over the style, position, and angle. An existing PDF can be updated or a new one created from scratch.
  • Convert PDF to Image - Creates an array of images or a multi-page tiff from a PDF.
  • Compress PDF - Compresses the images in the PDF to make it smaller.
  • Un-protect and Copy PDF - Using the document password, create an un-protected copy of a protected PDF.
  • Convert Image to PDF - Creates a PDF starting from one or many images. It also supports multi-page tiff images.
  • Encrypt PDF - Encrypts an existing PDF with a password.

Functions:

  • Get PDF Metadata - Retrieves metadata on the PDF: page count, title, author, security, encryption, etc.
  • Get PDF Text - Retrieves the text content from a PDF.
  • Get PDF Form Fields - Retrieves the populated form field values of an unflattened PDF.
  • Get PDF Signature Fields - Retrieves the populated signature field values of an unflattened PDF.
  • Get PDF Bookmarks - Retrieves the raw list of bookmarks in the PDF.

Anonymous
  • I see a message that this plugin (or some component it is using) has been deprecated when checking a process model in monitoring. I see no alternatives to the Plugin in the market.

    Many thanks Druva for this wonderful plugin which we have been using for 3.5 years! Can we expect this to be updated to be compatible with latest Appian version and not use deprecated components? Would be great help!

    Thanks,

    Pavan

  • Yes, this smart service supports insertion of png, jpg, bmp and gif documents into new PDFs.

    The contents of the new PDF is configured by passing in PdfContent object to the smart service. In this object, developers can define PdfSection, and within those an array of PdfText and/or PdfImage can be passed as components. Documents included in the PdfImage instances included in a section's contents will be inserted into that section upon generation.

    For more information on the configuration options for PdfContents, you can review the Data Types section of the documentation included in the plugin download.

  • Can the create PDF content feature be used to insert images into a new PDF file?  We have a requirement to include images in a PDF file dynamically.

  • The plugin library merge function is simply merging pages as it doesn't do consolidation.  Essentially, you would have to write your own plugin to achieve this type of functionality using a pdf library that supports merging in the manner you are requesting. 

  • We have blank spaces left in every pdf page ,When I am trying to Merge PDF it is leaving blank spaces we have in every page , 

    Suppose I have 3 pdfs to merge and each pdf content is only half page, when i am merging 3 pdf, it is generating 3 page pdf, rather it should generate 2 page pdf, first page fully occupied and 2nd page half occupied. How can we achieve this.?

  • Hello Joe,

    Did you find any solution? I am facing the same issue. Please let me know if any.

    Cheers

    Sushil kapoor

  • Hello,

    Is this is compatible with Appian 19.3(cloud), As I tried to upload below error occurred?

    ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'PDF Tools' (pdftools) version 2.2.5-SNAPSHOT: 'There was a problem loading the module descriptor: Fill PDF.
    com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException: com.appiancorp.process.admin.IncompatibleSmartServiceRegistrationException: The Smart Service Module was invalid: Illegal attempt to change the data type for smart service pdftools.FillPDFPauseOnError, input or output named PdfFields (APNX-1-4104-005)' 2020-02-10 04:51:10,214 [ajp-nio-8009-exec-3] ERROR com.appiancorp.rest.shared.AppianExceptionMapper - Internal Server Error on REST API invocation. com.appiancorp.exceptions.LocalizedAppianRuntimeException$LocalizedAppianException: Expression evaluation error [evaluation ID = OMPZXXRL] : An error occurred while executing a save: java.util.UnknownFormatConversionException: Conversion = 'D' (APNX-1-4198-019) at com.appiancorp.exceptions.LocalizedAppianRuntimeException.(LocalizedAppianRuntimeException.java:16) at com.appiancorp.sail.UiServiceImpl.reevaluateUi(UiServiceImpl.java:84) at com.appiancorp.sail.UiServiceImpl.reevaluateUi(UiServiceImpl.java:56) at

  • Hello,

    I have a quick question regarding the Compress PDF smart service. The node input "Quality" takes a number, but I'm not sure what that number refers to. Is that a 1 to 10 scale like you see sometimes when creating/saving PDFs with other applications? Thank you!

  • Hi. Thank you for this plugin. We really enjoy it Slight smile

    We are using the smart service "Convert PDF to Image", and the function "Get PDF Text". Both of these, and probably the same for every smart service+function in this plugin, have the risk of throwing an exception when provided with invalid PDFs. I.e. when you have a PDF that is valid to view in documentviewer, but have corrupt metadata. 

    We are using it on arbitrary PDFs and we have a small percentage of PDFs failing to progress through the process. It is currently not possible to perform exception handling in a process model, so it would be nice to see a version of this plugin where exceptions are caught and returned through output parameters. 

  • Hi Chris,

    I have installed PDF tools plug-in in cloud environment, however I was unable to see the function named "Get PDF Form Fields",

    I have checked the source code file named "PDFToolsFunctions.java" for the function but no luck

    Can you please help me on this.

    Cloud version : 19.4