Answer the question
In order to leave comments, you need to log in
Why does Yii2Assets/yii2-pdfjs throw an error when opening a protected pdf?
We are talking about PdfJs from Mozilla , but in this case I found a Yii2 plugin Yii2Assets/yii2-pdfjs . An error is thrown when outputting a protected pdf file.
In Firefox:
PDF.js v1.4.20 (сборка: b15f335)
Сообщение: too much recursion
PDF.js v1.4.20 (сборка: b15f335)
Сообщение: Maximum call stack size exceeded
Answer the question
In order to leave comments, you need to log in
The module itself does nothing, it only collects js files, registers them in yii2 assets and the whole thing is displayed in the view,
it means there is an error in the js files, try creating your own module, inherit and override the scripts that need to be downloaded from the mozilla git
UPD: well and then send the pull request to the developer on Github :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question