You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: [$injector:modulerr] Failed to instantiate module documentClassifierApp due to:
[$injector:modulerr] Failed to instantiate module {"PDFJS":{"compatibilityChecked":true,"version":"1.8.550","build":"afb1cd73","pdfBug":false,"verbosity":1,"VERBOSITY_LEVELS":{"errors":0,"warnings":1,"infos":5},"OPS":{"dependency":1,"setLineWidth":2,"setLineCap":3,"setLineJoin":4,"setMiterLimit":5,"setDash":6,"setRenderingIntent":7,"setFlatness":8,"setGState":9,"save":10,"restore":11,"transform":12,"moveTo":13,"lineTo":14,"curveTo":15,"curveTo2":16,"curveTo3":17,"closePath":18,"rectangle":19,"stroke":20,"closeStroke":21,"fill":22,"eoFill":23,"fillStroke":24,"eoFillStroke":25,"closeFillStroke":26,"closeEOFillStroke":27,"endPath":28,"clip":29,"eoClip":30,"beginText":31,"endText":32,"setCharSpacing":33,"setWordSpacing":34,"setHScale":35,"setLeading":36,"setFont":37,"setTextRenderingMode":38,"setTextRise":39,"moveText":40,"setLeadingMoveText":41,"setTextMatrix":42,"nextLine":43,"showText":44,"showSpacedT
as well as a number of other errors - I'm just looking for some help on my approach. Thanks!
The text was updated successfully, but these errors were encountered:
Hi @mzmousa,
I think you can't import 'pdf' in an angular module because it's not an angular module.
Simply include it in your html page with <script src="path/to/your/pdf.js/lib".
Hope this helps!
Has anyone added this into their web app using generator-angular-fullstack? I'm struggling to get it working. A few things I tried:
Adding these lines in
client/app/app.js
:Creating a new component
pdfViewer
inclient/components/
Here's
client/components/pdfViewer.component.js
Here's
client/components/pdfViewer.html
:Then finally in
main.html
, I addedI get errors such as:
as well as a number of other errors - I'm just looking for some help on my approach. Thanks!
The text was updated successfully, but these errors were encountered: