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 list of bookmarks and associated page number in the PDF

Anonymous
  • v2.2.9 Release Notes
    • Additional cleanup on plug-in uninstall
  • Hi,

    Getting below Error while trying to deploy the plug-in 

    HTTP Code: 500 APNX-1-4198-019 An Error Has Occurred Expression evaluation error [evaluation ID = R067GEJB] : An error occurred while executing a save: java.util.UnknownFormatConversionException: Conversion = 'D'

    Any reason with Environment Specific ? 

    Thanks in Advance

  • Found a work around. use the "Un-protect and Copy PDF" Smart Service.

    This will ensure that using the function, getpdfmetadata will not throw an uncaught exception.
    The newly created un-protected copy of PDF will be "clean" and using getpdfmetadata will work without an errors.

  • Hi,

    Looks like there's an issue when using getpdfmetadata.

    Expression evaluation error at function 'getpdfmetadata' [line 50]: XML handling failure trying to convert value com.appiancorp.ps.pdftools.types.PdfMetadata@5d283490 to Appian type PdfMetadata (id=3084)

    It appears that there are "BAD" pdf files that cannot be read and will throw an error.

    Will there be a proper exception handling for this function?

  • Hi,

    I am using merge and extract document smart services of this wonderful plugin. Need some help on extract document service.

    Extract document is working fine with sequence of pages like (if we have 10 pages and want to extract first 3 pages, we can give start page and end page) But if we have to extract first two pages(1,2) and last two pages(9,10).

    Is it possible to achieve above use case ? 

    Thanks in advance!!

    -Vinod

  • 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.