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
Parents
  • 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?

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

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

Children