I've figured out how to get things working on Mac Safari (without necessarily understanding why)...
compatibility.js
must be included.PDFJS.workerSrc
must be assigned.The demo code I had been testing (from the JS Bin demos here) does not do this, though some other online examples do (including the hello world example and the examples provided by @AndrewBenjamin – thanks). Other browsers don't seem to require this, but Safari won't work without it.
<script type="text/javascript" src="compatibility.js"></script> <script type="text/javascript" src="pdf.js"></script> <!-- NEED THIS for Safari Mac to render work --> <script type="text/javascript"> // Specify the main script used to create a new PDF.JS web worker. // In production, change this to point to the combined `pdf.js` file. PDFJS.workerSrc = 'pdf.worker.js'; </script>
Again, can't explain why, but this is how we got it working for us.