Skip to content

Update supported file formats#845

Draft
Ruchika4 wants to merge 1 commit into
stagefrom
file-format
Draft

Update supported file formats#845
Ruchika4 wants to merge 1 commit into
stagefrom
file-format

Conversation

@Ruchika4

Copy link
Copy Markdown
Collaborator

Summary

Restricts accepted file formats per verb to match the defined support matrix, rather than allowing all file types for most conversion verbs.

Screenshot 2026-07-11 at 8 57 22 PM

Changes

unitylibs/core/workflow/workflow-acrobat/limits.json

  • Added allowed-filetypes-no-adobe-design — all formats from allowed-filetypes-all except PSD, AI, and INDD
  • Added allowed-filetypes-psd-onlyimage/vnd.adobe.photoshop only
  • Added allowed-filetypes-ai-onlyapplication/illustrator only
  • Added allowed-filetypes-indd-onlyapplication/x-indesign only

unitylibs/core/workflow/workflow-acrobat/action-binder.js

  • psd-to-pdf, ai-to-pdf, indd-to-pdf → each restricted to their own format only (previously accepted all file types)
  • jpg-to-pdf, png-to-pdf, heic-to-pdf, image-to-pdf, bmp-to-pdf, gif-to-pdf, tiff-to-pdf, word-to-pdf, excel-to-pdf, ppt-to-pdf → switched to allowed-filetypes-no-adobe-design + allowed-filetypes-heic (removes PSD/AI/INDD acceptance, adds HEIC where missing)
  • createpdf (Convert PDF) — unchanged, continues to accept all formats

test/core/workflow/workflow-acrobat/action-binder.test.js

  • Updated image-to-pdf verbs onboarding test block to match new configuration

Testing

  • Unit tests: npm test — 846 passed, 0 failed
  • Upload a PSD to psd-to-pdf — only PSD should be accepted
  • Upload an AI file to ai-to-pdf — only AI should be accepted
  • Upload an INDD file to indd-to-pdf — only INDD should be accepted
  • Upload a PSD/AI/INDD to any image-to-pdf verb (e.g. jpg-to-pdf) — should be rejected
  • Upload a HEIC file to word-to-pdf, jpg-to-pdf, etc. — should be accepted
  • Upload any file type to createpdf (Convert PDF) — all formats should still be accepted

Resolves: MWPW-NUMBER

Test URLs:

@aem-code-sync

aem-code-sync Bot commented Jul 12, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant