Knowledge Base
v5.16.0
Search this version
Knowledge Base
Knowledge Base
Configuration and Settings
Errors and Troubleshooting
Features and Functionality
Licensing, Setup and Deployment
Updates, Patches and Bug Fixes
Version Upgrades
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Why doesn’t CDR detect the JavaScript I appended to a PDF file?
Copy Markdown
Open in ChatGPT
Open in Claude
This article applies to all MetaDefender Core releases deployed on Windows and Linux systems.
Cause
If the JavaScript-containing objects are added to the PDF but the Xref (Cross-Reference) table is not updated accordingly, CDR will not detect them.
- The Xref table is crucial for referencing valid objects in a PDF.
- Objects missing from the Xref table are considered garbage data and will be removed by the CDR engine.
Solution
To ensure that JavaScript in a PDF is detected by CDR:
- Update the Xref Table:
- When adding JavaScript, ensure that the corresponding object is correctly referenced in the Xref table.
- Follow PDF File Structure Specifications:
- The JavaScript should be stored in a properly structured and up-to-date object within the PDF.
Conclusion
For JavaScript to be recognised in a PDF by CDR, it must be placed in a valid object that is correctly indexed in the Xref table and complies with the PDF file structure specifications.
If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Why Deep CDR is not Sanitizing Files Inside a ZIP?Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message