sayanee / angularjs-pdf

:page_facing_up: An AngularJS directive <ng-pdf> to display PDF files with PDFJS
http://sayan.ee/angularjs-pdf/
MIT License
494 stars 248 forks source link

Prod question #219

Open shaoXunLu opened 6 years ago

shaoXunLu commented 6 years ago

My localhost test is OK. After I deployed to the server,I got an error

image

How should I deal with it?

dennybiasiolli commented 6 years ago

Hi @shaoXunLu, do you have an example of your code so I can take a deeper look?

shaoXunLu commented 6 years ago

just like the example same docCtrl.js file my viewer.html have canvas

image

in index.html image image

localhost test is OK. I used "mvn -Pprod clean package -DskipTests" to make a war package 。 when I deployed to the server (docker-compose) I got this error image