V
V
Vladislav Sofienko2017-10-13 15:05:24
JavaScript
Vladislav Sofienko, 2017-10-13 15:05:24

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

In Google Browser:
PDF.js v1.4.20 (сборка: b15f335)
Сообщение: Maximum call stack size exceeded

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-10-13
@Maksclub

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 question

Ask a Question

731 491 924 answers to any question