Overview
Contains multiple Smart Services and Functions for interacting with PDF Documents.
Key Features & Functionality
Smart Services:
Functions:
We had a pair of occurrences that caused the environment to crash after attempting to merge more than 10 documents. What JVM settings are your referring to? Application server settings?
Hi Jose Carlos Jarquin, there is not a defined limit, but for a really high number of files it will depend on the settings of the JVM.
Marco Amador is there a limit of files that the Merge PDF Smart Service will work with?
Hi Athira,
I also submitted a new version of the plugin containing the required library, which is currently under review and should hopefully be available soon. Glad to hear you proceeded with the workaround for the time being.
Thanks
Hi,
We resolved this by adding the required library into the plugin jar and since our environment was on the cloud, we raised an Appian Support ticket to deploy the updated jar to our environments.
This is the feedback I got from Appian support for the issue with deploying the plug-in code.
To resolve this issue, you will need to change the plugin code to explicitly reference PdfField?list^1 so that it matches the internally mapped version of the CDT, then recompile the plugin and attach the new .jar to this case. To do this, please identify each @Input and @Output of type "PdfFields" in the plugin code, the update its annotation following the Action section of KB-1097. For example, the error references the smart service "FillPDFPauseOnError," so you will need to make the following update in the file FillPDFPauseOnError.java:
Old: @Input(required = Required.ALWAYS)@Name("PdfFields")public void setPdfFields(PdfField[] val) { this.pdfFields = val;}
New:@Input(required = Required.ALWAYS)@Name("PdfFields")@Type(namespace = "">types.appiancorp.com/ps", name = "PdfField?list^1")public void setPdfFields(PdfField[] val) { this.pdfFields = val;}
Any plans to update a new version with these changes? If not, I will plan on making these changes myself on my end. Thanks!
{ 'type!{urn:appian:ps:pdftools}PdfContent'( page: 1, xPercent: 10, yPercent: 10, angle: 0, sections: { 'type!{urn:appian:ps:pdftools}PdfSection'( style: null, components: { 'type!{urn:appian:ps:pdftools}PdfText'( value: "Example" ), 'type!{urn:appian:ps:pdftools}PdfText'( value: "Content" ) } ) } )}
We had been using the Create PDF and it is on our cloud Production Environment as well. Ever since the plugin was updated to the latest version (2.2.10), the node throws an error and on the logs, we see the following error.
2021-02-22 04:24:29,665 [ThreadPoolTaskExecutor-24675] ERROR com.appiancorp.process.workpoller.WorkItemListener - The following exception occurred while attempting to complete work item [(WorkId: 687, WorkType: {Process Id:268475360,Point Id:268438308} Activity Metadata:{Id:268438308,ACPs:{ActivityClassParameter[name=CreateNewDocument,it=26,v=1],ActivityClassParameter[name=NewDocumentName,it=3,v=PDF Image_2021023419_18],ActivityClassParameter[name=NewDocumentDesc,it=3,v=],ActivityClassParameter[name=SaveInFolder,it=12,v=1659],ActivityClassParameter[name=ExistingDocument,it=13,v=<null>],ActivityClassParameter[name=Document,it=13,v=<null>],ActivityClassParameter[name=PauseOnError,it=26,v=0],ActivityClassParameter[name=Contents,it=197,v={TypedValue[it=4080,v={<null>,<null>,<null>,<null>,{{<null>,{TypedValue[it=4074,v={<null>, Trailer Tempreture Proof }]}},{<null>,{TypedValue[it=4074,v={<null>, Trailer Tempreture Set Point: 32,32,72}]}},{<null>,{TypedValue[it=4074,v={<null>, Trailer Box Tempreture: 32,32,22}]}},{<null>,{TypedValue[it=4076,v={39662,<null>,0.2}]}}}}]}]},ARVs:{ActivityReturnVariable[name=ErrorOccurred,it=26,v=<null>],ActivityReturnVariable[name=ErrorText,it=3,v=],ActivityReturnVariable[name=NewDocumentCreated,it=13,v=<null>]}}, Response: null, ServerName: execution01)] - Exception: javax.resource.spi.work.WorkCompletedException: java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanUtils
Please help us to understand the error and any solutions to this will be much appreciated. Thanks in advance.
I am getting the following error when trying to import PDF Tools in our environment:
HTTP Code: 500APNX-1-4198-019
An Error Has OccurredExpression evaluation error [evaluation ID = BO9U41F6] : An error occurred while executing a save: java.util.UnknownFormatConversionException: Conversion = 'D'
When we look into the stdout.log file, the following additional information is available:
2021-02-22 03:41:31,222 [ajp-nio-0.0.0.0-8009-exec-1130] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'PDF Tools' (pdftools) version 2.2.10: 'The Function Module com.appiancorp.ps.pdftools.PDFToolsFunctions could not be installed due to invalid type: Invalid Type: Unsupported type com.appiancorp.ps.pdftools.types.PdfMetadata. 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)'
Any idea what this issue is referring to? Thanks.