Hi n8n Team,
I’m encountering a critical issue while using the Extract from File node (specifically with PDF extraction) on a self-hosted instance of n8n (version 1.98.1). The workflow fails with the following error:
json
Copy
Edit
{
"errorMessage": "DOMMatrix is not defined",
"errorDetails": {},
"n8nDetails": {
"nodeName": "Extract Resume PDF",
"nodeType": "n8n-nodes-base.extractFromFile",
"nodeVersion": 1,
"operation": "pdf",
"itemIndex": 0,
"time": "18/06/2025, 12:04:05",
"n8nVersion": "1.98.1 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"NodeOperationError: DOMMatrix is not defined",
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Files/ExtractFromFile/actions/pdf.operation.ts:134:10)",
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Files/ExtractFromFile/ExtractFromFile.node.ts:130:17)",
" at WorkflowExecute.runNode (...)"
]
}
}
The error appears to be linked to a missing reference to DOMMatrix
, which I understand is a browser-specific object and may not be available in a Node.js environment.
Could you please confirm if this is a known issue, and if there’s a workaround or upcoming fix for self-hosted users using this node?
Thanks in advance for your help.
Dilruk Wickremasinghe