varqtpath= '${qtpath}';varfileName= '${fileName}';
PDF.js viewer
varDEFAULT_URL= "";//注意,删除的变量在这里重新定义
varPDFData= "";
$.ajax({
type:"post",
async:false,//mimeType:'text/plain; charset=x-user-defined',
url:'${qtpath}/doc2PdfController/doc2pdf',
data:{'fileName':fileName},
success:function(data){
PDFData=data;
}
});varrawLength=PDFData.length;//转换成pdf.js能直接解析的Uint8Array类型,见pdf.js-4068
vararray= newUint8Array(newArrayBuffer(rawLength));for(i= 0; i
array[i]=PDFData.charCodeAt(i)& 0xff;
}
DEFAULT_URL=array;
Thumbnails
Document Outline
Attachments