From 0dcaef4ce519b18b7c6f65134da29d0d9d588a03 Mon Sep 17 00:00:00 2001 From: Sanjay Saravanan Date: Thu, 28 Aug 2025 23:22:24 -0700 Subject: [PATCH] MWPW-179476 Add PDF to PNG verb to Acrobat Workflow --- .gitignore | 1 + unitylibs/core/workflow/workflow-acrobat/action-binder.js | 2 ++ unitylibs/core/workflow/workflow.js | 1 + 3 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 492ce8e33..aafb499a1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ node_modules/* .idea test-html-results/ test-results/ +.cursor/ diff --git a/unitylibs/core/workflow/workflow-acrobat/action-binder.js b/unitylibs/core/workflow/workflow-acrobat/action-binder.js index ad5cf635d..1cea7b393 100644 --- a/unitylibs/core/workflow/workflow-acrobat/action-binder.js +++ b/unitylibs/core/workflow/workflow-acrobat/action-binder.js @@ -188,6 +188,7 @@ export default class ActionBinder { 'pdf-to-excel': ['hybrid', 'allowed-filetypes-pdf-only', 'max-filesize-100-mb'], 'pdf-to-ppt': ['hybrid', 'allowed-filetypes-pdf-only', 'max-filesize-250-mb'], 'pdf-to-image': ['hybrid', 'allowed-filetypes-pdf-only', 'max-filesize-100-mb'], + 'pdf-to-png': ['hybrid', 'allowed-filetypes-pdf-only', 'max-filesize-100-mb', 'page-limit-600'], createpdf: ['hybrid', 'allowed-filetypes-all', 'max-filesize-100-mb'], 'word-to-pdf': ['hybrid', 'allowed-filetypes-all', 'max-filesize-100-mb'], 'excel-to-pdf': ['hybrid', 'allowed-filetypes-all', 'max-filesize-100-mb'], @@ -458,6 +459,7 @@ export default class ActionBinder { 'pdf-to-excel': ['application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'], 'pdf-to-ppt': ['application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation'], 'pdf-to-image': ['image/jpeg', 'image/png'], + 'pdf-to-png': ['image/jpeg', 'image/png', 'image/tiff'], }; return verbToFileTypeMap[verb]?.includes(fileType) || false; } diff --git a/unitylibs/core/workflow/workflow.js b/unitylibs/core/workflow/workflow.js index 3c07087fc..393401bf6 100644 --- a/unitylibs/core/workflow/workflow.js +++ b/unitylibs/core/workflow/workflow.js @@ -293,6 +293,7 @@ class WfInitiator { 'pdf-to-excel', 'pdf-to-ppt', 'pdf-to-image', + 'pdf-to-png', 'createpdf', 'word-to-pdf', 'excel-to-pdf',