Conversation
added 11 commits
August 19, 2026 16:39
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MWPW-204909 - Add gen-presentation-v2 / interactive-report / stylize verbs and PDF integrity validation
Summary
Adds support for three new Acrobat verbs and introduces config-driven PDF pre-upload validation — encryption / password-protection, corrupted-file, AcroForm, and scanned-document detection — alongside a generalized word page-count check.
Updating pdf-lite library code with latest version 1.14.0
Changes
New verbs
gen-presentation-v2,interactive-report, andstylizeacross the enabled-features list (workflow.js),LIMITS_MAP(action-binder.js), and the verb config arrays intarget-config.json.page-limit-15limit (used bystylize) inlimits.json.Config-driven PDF validation (
action-binder.js,pdflite-validator.js)pdflite-validator.jsnow surfacesisEncrypted,isPasswordProtected,hasAcroForm, andisScannedfrom pdflite file details, and flags files as corrupted whenfileDetailsthrows.filterFilesWithPdfliteruns integrity, AcroForm, scanned, and page-count checks selectively per verb, driven by new config lists:pdfIntegrityCheckVerbs,pdfAcroformCheckVerbs,pdfScannedCheckVerbs, andwordPageCountVerbs(the word page-count check is now config-driven instead of hardcoded toresume-builder).Scanned-document detection
pdflite's scan (IS_SCANNED_DOCUMENT) is only computed whenfileDetailsis called withcheckScanned = true, socheckScannedis threaded throughvalidateFilesWithPdfliteand enabled only for verbs inpdfScannedCheckVerbs(currentlystylize) to avoid the extra OCR cost on other flows.Corrupted-file handling
fileDetailssignifies a corrupted/unreadable PDF; these are now caught and rejected via the existing integrity check (no new error code).New error codes / messages
validation_error_password_protected(_multi),validation_error_acroform_not_supported(_multi), andvalidation_error_scanned_document(_multi)to the error map and message maps.Testing
pdflite-validatorcovering the new encryption / password-protection / AcroForm fields — passing.gen-presentation-v2,interactive-report, andstylize(page limits, allowed file types).pdfIntegrityCheckVerbs/pdfAcroformCheckVerbsand confirm the correct error toast appears and the file is excluded.stylizeand confirm the scanned-document error toast fires.resume-builderand the newly configured verbs.Unity integration is not implemented on stage on Unity BE and product side yet, so the end-to-end flow will not work for now. Please test all the client-side validation till then.
Test URLs