Overview
This plugin contains a smart service to convert .docx documents to PDF using Aspose Libraries with support for custom fonts and optionally encrypt the final PDF document. It will also maintain the PDF structure for 508 compliance as well as compress the file to maintain a low file size. An Aspose JAVA Words license is required and must be provided to the smart service in order for it to work accordingly.
Key Features & Functionality
Hi shaun.freeman(Author),
We have a random issue with this smart service. Please find the issue description and the error log file attached.
Issue Description:
We have used this node to convert Docx to PDF inside a sub-process. And we have configured an exception timer to the sub-process node with an exception of 5 minutes. At some cases, this smart service node takes more than 5 minutes to render the PDF document. So, after 5 minutes, the exception path is taken and the smart service becomes unfinished.
As the process is taking exception path after 5 minutes, the input docx document for the smart service is reset to null which causes the null pointer exception error.
Please let us know if this null error can be fixed in upcoming versions. Also, we would like to know why is it randomly taking more time to render the PDF document.
FYI: The document is having only english fonts for some 3 pages and the same is rendered within few seconds in other environments(all environments are in same versions 19.4).
Thanks!
2021-07-06 07:09:36,230 [Appian Work Item - 650363 - execution02 : UnattendedJavaActivityRequest] ERROR com.appiancorp.ps.plugins.aspose.utils.DocumentUtilAppian - com.appiancorp.suiteapi.content.exceptions.InsufficientNameUniquenessException: Name is insufficiently unique 2021-07-06 07:09:36,230 [Appian Work Item - 650363 - execution02 : UnattendedJavaActivityRequest] ERROR com.appiancorp.ps.plugins.aspose.utils.ConvertToPDFSvc - java.lang.NullPointerException at com.appiancorp.ps.plugins.aspose.utils.DocumentUtilAppian.createNewDocument(DocumentUtilAppian.java:145) at com.appiancorp.ps.plugins.aspose.utils.CreatePDFInAppian.convert(CreatePDFInAppian.java:55) at com.appiancorp.ps.plugins.aspose.utils.ConvertToPDFSvc.run(ConvertToPDFSvc.java:39) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.lambda$call$0(DefaultActivityExecutor.java:131) at com.appiancorp.plugins.PluginUsageLogger.runWithPluginInformation(PluginUsageLogger.java:52) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:131) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:125) at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:25) at com.appiancorp.process.runtime.framework.DefaultActivityExecutor.execute(DefaultActivityExecutor.java:125) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:83) at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:55) at com.appiancorp.process.engine.ContinuationRequest.executeOuter(ContinuationRequest.java:71) at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:100) at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36) at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:84) at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:239) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)