Thanks for the quick replies!
I got the same error after importing your example in my environment (view.ctxPrm(...) is not a function).
The package.json file in my "node_modules/jsreport-pdf-utils" folder says I have jsreport-pdf-utils@1.6.1
general forum