Edit in JSFiddle

// pdf.worker.js へのパスを指定する 
PDFJS.workerSrc = 'http://seikichi.github.io/tmp/PDFJS.0.8.715/pdf.min.worker.js';

$(function () {
    // 注: pdfData の型は Uint8Array
    var pdfData = loadPDFData();

    // PDFJS.getDocument でPDFドキュメントを読み込み
    PDFJS.getDocument(pdfData).then(function (pdf) {
        // 1ページ目を取得する
        return pdf.getPage(1);
    }).then(function (page) {
        // Canvas に1ページ目の内容を描画
        var scale = 1;
        var viewport = page.getViewport(scale);
        var canvas = document.createElement('canvas');
        var context = canvas.getContext('2d');
        canvas.height = viewport.height;
        canvas.width = viewport.width;
        var renderContext = {
            canvasContext: context,
            viewport: viewport
        };
        page.render(renderContext);
        // body に挿入
        document.body.appendChild(canvas);
    });
});

function loadPDFData() {
    var base64pdfData = '\
JVBERi0xLjUKJeTw7fgKOCAwIG9iago8PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDExOT4+\
CnN0cmVhbQp42mXLuwrCUBCE4d6nmFIh2ezlcDZpgwZJpbCdWHkpJEHE94dEQVBkpvw/PCDgeQLX\
+YzTiDZQdQJN5LUjrvBMLiidiRVxPiy3l2G4F6tj9NjEfy9JyOpvsFt3dHv+AEVDTbZXryYkhjIb\
U05vIJ92v5gAwNUk/wplbmRzdHJlYW0KZW5kb2JqCjEzIDAgb2JqCjw8L1N1YnR5cGUvVHlwZTFD\
L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMTIzNz4+CnN0cmVhbQp42n1Sa0xTZxg+h1N7zgTL\
dB51F8+pCU4ZWArDoGbOMJSpjAkMWbwM6UojYKEXWkqFyU3o5W25I5RaLpYKQR1eMLCZVdSMTA2R\
bTHbfqAmbplzidMf7jvdx5Id0O2f+/Mk3/vme59LHpKQSAiSJBd9kJ61PSM5JiU9Kz5pbrC+CDf+\
tS1Us0B4nRDeIIWVYQJHCcslKwmCjFwsIiFEzuG9l+dwtQgLdi4hJCTJmA87lMq3FUplQopObzUW\
Hiwwydeq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MWY3YzljMzM0YjQzPjwyMzkxZDY0YzUyZWRjYjY4NDQ1NDFmN2M5YzMzNGI0Mz5d\
L1NpemUKMTkvV1sxIDIgMl0vRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCA2ND4+CnN0cmVhbQp4\
2iXJyw2AIBQF0bnIR9CE/ld0YCHW4x5z8zYnkwywd6JSTTGH6Qa1Ba5LzCiZbJJp4o1xqnxRw9wa\
D/wujAXqCmVuZHN0cmVhbQplbmRvYmoKc3RhcnR4cmVmCjI3MzQKJSVFT0YK\
';

    function base64ToUint8Array(base64) {
        var raw = atob(base64);
        var uint8Array = new Uint8Array(new ArrayBuffer(raw.length));
        for (var i = 0, len = raw.length; i < len; ++i) {
            uint8Array[i] = raw.charCodeAt(i);
        }
        return uint8Array;
    }
    return base64ToUint8Array(base64pdfData);
}

              
            
          
            
              
                

              
            
          
            
              

External resources loaded into this fiddle: