Issue with “Extract Resume PDF” Node – DOMMatrix is not defined Error (v1.98.1 Self-Hosted)

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

2 Likes

do a simple roll back to a version earlier than the current one and that’s it.

2 Likes

What if I’m using the n8n hosted version? I have multiple workflows that deppend on that node :^(

I had the same issue after updating it today. I run it in a self hosted docker instance inside truenas scale, and I rolled back to an oder version. i went back to the version 1.97.1 and my workflows were running smooth again.

how to downgrade to lower version in docker

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.