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.
  • Split PDF Pages In Half - Supports spitting individual pdf pages horizontally or vertically with an overlap.

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.8.1 Release Notes
    • Adding smart service: Split PDF Page in Half
  • hi I am getting below error on trying to recompile this for 24.4 Appian version. Any pointers will help?

    he type com.appiancorp.cache.CoupledValue cannot be resolved. It is indirectly referenced from required .class files

    private static Object fromTypedValue(TypeService ts, long typeId, Object[] objValues, Map<QName, Class<?>> map, int level)
    throws IOException, InstantiationException, IllegalAccessException, InvocationTargetException, InvalidTypeException {




    Datatype dType = ts.getType(typeId);

  • Hi,

    I'm using version 2.8.0 of the PDF Tools plugin on Appian version 24.3 and I'm having an issue with the Convert PDF to Image smart service. Sometimes when convering a PDF to an image, the text in the PDF is missing in the image.

    I'm getting this error in the system logs:

    org.apache.pdfbox.contentstream.PDFStreamEngine - Cannot read JBIG2 image: jbig2-imageio is not installed

    This error has happened earlier, on 27th Sep 2024, with an older version of the plugin. After upgrading the plugin to the latest version (2.8.0), the same error is still occuring for some PDFs.

    Has anyone else had the same issue?

  • Hello Team, we have suddenly started have started facing issues with Pdf tools plugin in production environment, we are currently using 
    Convert PDF To Image & Convert Image To PDF modules from the subjected plugin.
    The above-mentioned nodes get failed with error saying, "An error occurred in executing an Activity Class." and an attempt to restart the node sometimes fixed the issue with the instances and sometimes it takes 2 to 3 restart attempts to successfully resume the process and meanwhile it keeps giving the same error.
    We are using latest version of the plugin 2.8.0 currently. any input will be greatly appreciated.
  • Hello,

    Unsure if anyone else is experiencing this issue or has experienced this issue but for few documents, getpdfmetadata() function is throwing error:

    An error occurred while evaluating expression: pdfMetaData:getpdfmetadata(todocument(pv!documentsData['recordType!... (Expression evaluation error at function 'getpdfmetadata': XML handling failure trying to convert value com.appiancorp.ps.pdftools.types.PdfMetadata@77d5bc12 to Appian type PdfMetadata (id=3818))

    there are no similarities between the documents, but its occuring for some documents randomly.

    Any advice is appreciated. 

  • Is someone having a problem with the Merge function?

    I keep getting an error in some of the PDF. The error is 

    ???contents.error.alertMsg???

     Any advice?

  • v2.8.0 Release Notes
    • Resolving issue where converted image has a black background
    • Resolving issue with PDF to Image using TIFF format
    • Reducing the size of PDFs generated using images
  • Hello   Unable to download the documentation of the plugin.
    Can you please help find it ?
    Been seeing this issue where the ZIP is also not opening on other plugins please Help

  • Hi, I am getting the following error while trying to convert pdf to mp_tiff image: 

    UnattendedJavaActivityRequest] ERROR com.appiancorp.ps.pdftools.ConvertPDFToImage - Error converting PDF to image

    com.appiancorp.suiteapi.common.exceptions.AppianStorageException: In order to access this method, this Document needs to be retrieved via ContentService.download()

            at com.appiancorp.content.DocumentHelper.getOutputStream(DocumentHelper.java:158)

     

    Anyone else came across this issue?

    Thanks, Aleksandrs

     

  • almost 2 years later and no movement (or replies) on this one, sadly, and it's becoming an issue again.