title: pdf.js not loading pdf file
body: <p>I'm very new to pdf.js and am probably making some basic mistake. I'm trying to just copy the "Hello World with document load error handling" example provided here:</p>
  
  <p><a href="https://mozilla.github.io/pdf.js/examples/" rel="nofollow noreferrer">https://mozilla.github.io/pdf.js/examples/</a></p>
  
  <p>I just copy and pasted the code across to new html, css and js files but didn't work. I tried changing the url in pdfjsLib.getDocument(url) to a local file directory on my computer i.e. ./pdf/test.pdf but didn't work. I tried changing the </p>
  
  <pre><code>&lt;script src="//mozilla.github.io/pdf.js/build/pdf.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>&lt;script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@2.2.228/build/pdf.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>but that didn't work either. </p>
  
  <p>My console log states two things:</p>
  
  <p>1) Loading failed for the  with source “file:///pdf.js/build/pdf.js”</p>
  
  <p>2) TypeError: pdfjsLib is undefined</p>
  
  <p>I understand I am a beginner here but would it be too much to ask the guys who put so much effort into creating it to write a few lines about how to use it for beginners like me? Anyways, if someone can help solve my what I'm sure is a very basic question, it would be much appreciated.</p>
  
  <p>Thanks</p>