2
votes
Accepted
Trouble loading PDF.js lib in LWC
When you do loadScript you need to point it to the .js file in your static resource, not just the folder name.
For example, instead of loadScript(this, pdfjs), you need to do loadScript(this, pdfjs + &...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pdf × 647visualforce × 390
apex × 193
css × 65
renderas × 58
attachment × 51
html × 37
lightning-web-components × 34
email × 27
quote × 27
lightning-aura-components × 22
javascript × 22
blob.topdf × 18
lightning × 17
files × 15
images × 13
blob × 13
table × 12
getcontentaspdf × 12
community × 11
controller × 10
printpdf × 10
visualforce-component × 9
custom-object × 8
repeat × 8