WebViewer报错Error loading document: Invalid XOD file: Zip end header data is wrong size!

错误:Error loading document: Invalid XOD file: Zip end header data is wrong size!

解决:https://groups.google.com/forum/#!topic/pdfnet-webviewer/f-mdkNRsEbI

streaming = true
azureWorkaround = false

 

function initViewer(url){

    var viewerElement = document.getElementById('preview');
    window.myWebViewer = new PDFTron.WebViewer({
        type: "html5",
        path: "/static/webviewer/lib",
        initialDoc: url,
        //azureWorkaround: false,
        config: "/static/webviewer/config.js",
        documentId: "webviewer_developer_guide",
        enableAnnotations: false,
        streaming: true
    }, viewerElement);
}

 

posted @ 2015-08-26 19:23  flowjacky  阅读(610)  评论(0编辑  收藏  举报