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
  • Rotate PDF - rotate entire pdf by 90, 180, or 270 degrees
  • Convert Txt to PDF - Convert a text to pdf with a choice of font type and size
  • Split PDF Into Chunks - Splits a PDF document into multiple smaller PDFs with a specified number of pages per chunk

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
  • Find Pages with Text - Retrieves an array of page numbers that contain a specified search string within the PDF

Anonymous
  • Hi Team,

    I am facing the below error. can someone help me to fix this error?

    2023-05-16 12:47:24,886 [Appian Plugin Hot Deploy] ERROR com.atlassian.plugin.manager.DefaultPluginManager - There was an error loading the descriptor 'Pdftoolsfunctions' of plugin 'pdftools'. Disabling.
    com.atlassian.plugin.PluginException: com.appiancorp.suiteapi.common.exceptions.AppianException: The Function Module com.appiancorp.ps.pdftools.PDFToolsFunctions could not be installed due to invalid type: Invalid Type: Unsupported type [Lcom.appiancorp.ps.pdftools.types.PdfSignatureField;. Use the @Type annotation to indicate the type of a function parameter. The deprecated ’type’ attribute for the @Parameter annotation has been removed. (APNX-1-4104-008)
    at com.appiancorp.plugins.ExceptionHandlingModuleDescriptor.enabled(ExceptionHandlingModuleDescriptor.java:68)
    at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:2039)
    at com.appiancorp.plugins.AppianPluginManager.notifyModuleEnabled(AppianPluginManager.java:78)
    at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1780)
    at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1757)
    at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1263)
    at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1218)
    at com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:927)
    at com.appiancorp.plugins.AppianPluginManager.scanForNewPlugins0(AppianPluginManager.java:204)
    at com.appiancorp.plugins.AppianPluginManager.scanForNewPlugins(AppianPluginManager.java:196)
    at com.appiancorp.plugins.AppianPluginManager.scanResultIfNotDeployingPlugins(AppianPluginManager.java:184)
    at com.appiancorp.plugins.HotDeployerRunnable.run(HotDeployerRunnable.java:30)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: com.appiancorp.suiteapi.common.exceptions.AppianException: The Function Module com.appiancorp.ps.pdftools.PDFToolsFunctions could not be installed due to invalid type: Invalid Type: Unsupported type [Lcom.appiancorp.ps.pdftools.types.PdfSignatureField;. Use the @Type annotation to indicate the type of a function parameter. The deprecated ’type’ attribute for the @Parameter annotation has been removed. (APNX-1-4104-008)
    at com.appiancorp.process.expression.ExpressionFunctionModuleDescriptor.enabledInternal(ExpressionFunctionModuleDescriptor.java:159)
    at com.appiancorp.plugins.ExceptionHandlingModuleDescriptor.enabled(ExceptionHandlingModuleDescriptor.java:66)
    ... 18 more
    Caused by: com.appiancorp.suiteapi.type.exceptions.InvalidTypeException: com.appiancorp.suiteapi.common.exceptions.AppianException: Invalid Type: Unsupported type [Lcom.appiancorp.ps.pdftools.types.PdfSignatureField; (APNX-1-4047-000)
    at com.appiancorp.type.util.AppianTypeResolver.getRestrictedType(AppianTypeResolver.java:155)
    at com.appiancorp.type.util.AppianTypeResolver.inferAppianType(AppianTypeResolver.java:94)
    at com.appiancorp.type.util.AppianTypeResolver.inferReturnType(AppianTypeResolver.java:71)
    at com.appiancorp.process.expression.ExpressionFunctionModuleDescriptor.inferReturnType(ExpressionFunctionModuleDescriptor.java:203)
    at com.appiancorp.process.expression.ExpressionFunctionModuleDescriptor.enabledInternal(ExpressionFunctionModuleDescriptor.java:148)
    ... 19 more
    2023-05-16 12:47:24,889 [Appian Plugin Hot Deploy] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'PDF Tools' (pdftools) version 2.4.1: 'The Function Module com.appiancorp.ps.pdftools.PDFToolsFunctions could not be installed due to invalid type: Invalid Type: Unsupported type [Lcom.appiancorp.ps.pdftools.types.PdfSignatureField;. Use the @Type annotation to indicate the type of a function parameter. The deprecated ’type’ attribute for the @Parameter annotation has been removed. (APNX-1-4104-008)'

  • Did you find the solution? I am getting the same error.

    Thanks In Advance.

  • Hi ,

    we are getting this error on reading a pdf document which is as below

    ]: Use PDType1CFont for FontFile3

    Can you help us in finding what the problem is 

  • Not able to download the plugin

  • this works pretty well. What you mean by
    "I'm doing with hardcode value."?

  • Hi all,

    How to convert image to pdf with multiple documents

    I'm doing with hardcode value.

  • we have on-Premise Appian installation

  • Why is this plugin not working with 18.1? we have deployed this plugin in _admin/plugins folder and after JBOSS restart it is still missing.

    kindly quick response is required

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