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
  • After upgrading to the latest version PDF Tools 2.4.1, the generated PDF is having format font issues. I created a new word template from scratch which it uses the word template to convert to PDF and still no luck. I have attached screenshots of the pdf and snippet of the process model. Anyone faced this issue? Please give me your suggestions on how to solve this issue.

  • Hi,

    I am using Create PDF smart service to generate a PDF with plain text.

    Am getting the following error in the Create PDF node.

    ???contents.error.alertMsg???

    Error Text: U+000A ('controlLF') is not available in the font Helvetica, encoding: WinAnsiEncoding

    Am using the following expression to generate PDF contents

    a!localVariables(
    local!text:
     "Firstname Vikrant " & char(10) &
     "Lastname Bhardwaj " & char(10) &
     "Address 100 NW AVE " & char(10) &
     "City Irving " & char(10) &
     "Zipcode 12345 "&char(10) &
     "Country USA",
    'type!{urn:appian:ps:pdftools}PdfContent'(
     sections:{
     'type!{urn:appian:ps:pdftools}PdfSection'( 
      style:'type!{urn:appian:ps:pdftools}PdfStyle'(
       font:"Times New Roman"
       ),
     components: {
      'type!{urn:appian:ps:pdftools}PdfText'(
      value:local!text
        ) 
       }
      )
     }
    )
    )

    Please let me know how to resolve it.

    Thanks,

  • issue addressed as the functions are not of this plugin.

  • Hi we have upgraded form an old version 2.2.11 to 2.4.1 and now the plugin "PDF from Single DOCX (with fonts)" is failing, 

    we have tried to update the calls using "PDF from DOCX" but it works only with externally loaded DOCX generated from template. It is not not with ones created from a DOCX directly in appian. 

    can someone help if it has already faced and addressed the issue?

  • I'm trying to run a user-supplied PDF through "Compress PDF".  It's refusing and giving me the following error message:

    Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed

    This is happening in the current version of the plug-in and for a valid PDF as far as I can tell (it opens fine in Adobe Reader as well as the Appian document preview field, etc).

    Any chance an update could be created to account for this issue?

  • sorry i never saw this reply before (community doesn't bother send notifications of general replies in these threads, for whatever reason) - the "pdf fields" parameter can just be passed a list of dictionary data where each dictionary has parameters named "name" and "value", where "name" will match the PDF fillable field's internal "name" parameter, and "value" is generally any text value. 

    I agree the documentation for this plug-in is a little vague as to how that works, though you can get a good idea by looking at the definition for the "PdfField" data type on page 13 of the documentation PDF.

  • Getting error as "bundleName for SmartServiceException, builder.smartServiceClass=class com.appiancorp.ps.pdftools.AbstractPDFDocumentGeneration" when converting a PDF to image.  How to fix this?

  • Getting the error below on the mergePDF node:

    Appian version 21.4.1075....

    Any help will be much appreciated.

    Thanks

    bundleName for SmartServiceException, builder.smartServiceClass=class com.appiancorp.ps.pdftools.AbstractPDFDocumentGeneration

  • I'm attempting to get the number of pages from a PDF using getPDFMetaData, but it's erroring saying Error expected floating point number actual='-17.-32768'.