@@ -1629,6 +1623,7 @@ taxDocumentManageModule.directive('pdfPreview', function () {
pdfSumPages=data.numPages;
returndata.getPage(pdfCurPageIndex);
}).then(function(page){
pageInfo=page;
varscale=1.5;
varviewport=page.getViewport(scale);
canvas.height=viewport.height;
...
...
@@ -1667,6 +1662,18 @@ taxDocumentManageModule.directive('pdfPreview', function () {
renderPdf(pdf)
})
};
$scope.webViewerRotateCw=function(){
angle+=90;
varscale=1.5;
varviewport=pageInfo.getViewport(1.5,angle);
canvas.height=viewport.height;
canvas.width=viewport.width;
varrenderContext={
canvasContext:context,
viewport:viewport
};
pageInfo.render(renderContext);
};
functiongetPdf(url){
// var url = 'http://47.94.233.173:11007/static/erp_tax_system/61063D1D-8C9E-47C1-B106-AFF696CF5D98?expire=1552466477&signiture=5IaoVIHX_pzmQgyaxdzYC2NsNOz_R0eyRUhQU1BJjiE=';