目前我正在使用jspdf来创建动态pdf,我也可以通过选择保存来保存PDF,是否有任何可能的方法强制下载直接创建的PDF而不是单击出现的保存或丢弃按钮。
我只需强制下载 pdf,不使用任何服务器端,只需在客户端完成
当我动态查看它时,网址如下
data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9MZW5ndGggMzA3ND4+CnN0cmVhbQowLjU3IHcKMCBHCkJUCi9GMSAxNiBUZgoxNiBUTAowIGcKNTYuNjkgNTUyLjc2IFRkCihFWFBFTlNFIFNIRUVUUyBTVU1NQVJZKSBUagpFVApCVAovRjEgMTYgVGYKMTYgVEwKMCBnCjU2LjY5IDUyNC40MSBUZAooUEVSSU9EOkFMTCkgVGoKRVQKMS40MiB3CjU2LjY5IDUxMC4yNCBtIDc5My43MCA1MTAuMjQgbCBTCkJUCi9GMSAxNiBUZgoxNiBUTAowIGcKNTYuNjkgNDgxLjg5IFRkCihTaGVldCBEYXRlKSBUagpFVApCVAovRjEgMTYgVGYKMTYgVEwKMCBnCjE1NS45MSA0ODEuODkgVGQKKFRpdGxlKSBUagpFVApCVAovRjEgMTYgVGYKMTYgVEwKMCBnCjM2OC41MCA0ODEuODkgVGQKKENvbW1lbnQpIFRqCkVUCkJUCi9GMSAxNiBUZgoxNiBUTAowIGcKNzA4LjY2IDQ4MS44OSBUZAooVG90YWwgQW1vdW50KSBUagpFVAoxLjQyIHcKNTYuNjkgNDY3LjcyIG0gNzkzLjcwIDQ2Ny43MiBsIFMKQlQKL0YxIDE2IFRmCjE2IFRMCjAgZwo1Ni42OSA0MjUuMjAgVGQKKDIwMTMtMTItMDkpIFRqCkVUCkJUCi9GMSAxNiBUZgoxNiBUTAowIGcKMTU1LjkxIDQyNS4yMCBUZAooU2hlZXQgMSApIFRqCkVUCkJUCi9GMSAxNiBUZgoxNiBUT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DwKL1R5cGUgL0NhdGFsb2cKL1BhZ2VzIDEgMCBSCi9PcGVuQWN0aW9uIFszIDAgUiAvRml0SCBudWxsXQovUGFnZUxheW91dCAvT25lQ29sdW1uCj4+CmVuZG9iagp4cmVmCjAgMjMKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDA3MTM5IDAwMDAwIG4gCjAwMDAwMDgzODQgMDAwMDAgbiAKMDAwMDAwMDAwOSAwMDAwMCBuIAowMDAwMDAwMDg3IDAwMDAwIG4gCjAwMDAwMDMyMTEgMDAwMDAgbiAKMDAwMDAwMzI4OSAwMDAwMCBuIAowMDAwMDA2Mzc1IDAwMDAwIG4gCjAwMDAwMDY0NTMgMDAwMDAgbiAKMDAwMDAwNzIzOCAwMDAwMCBuIAowMDAwMDA3MzI4IDAwMDAwIG4gCjAwMDAwMDc0MjQgMDAwMDAgbiAKMDAwMDAwNzUyMyAwMDAwMCBuIAowMDAwMDA3NjI2IDAwMDAwIG4gCjAwMDAwMDc3MTUgMDAwMDAgbiAKMDAwMDAwNzgwOSAwMDAwMCBuIAowMDAwMDA3OTA2IDAwMDAwIG4gCjAwMDAwMDgwMDcgMDAwMDAgbiAKMDAwMDAwODEwMCAwMDAwMCBuIAowMDAwMDA4MTkyIDAwMDAwIG4gCjAwMDAwMDgyODYgMDAwMDAgbiAKMDAwMDAwODYxMiAwMDAwMCBuIAowMDAwMDA4Njk0IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgMjMKL1Jvb3QgMjIgMCBSCi9JbmZvIDIxIDAgUgo+PgpzdGFydHhyZWYKODc5OAolJUVPRg==
任何帮助将不胜感激
仅当我使用doc.output('datauri');
如果我想强制保存,无论如何我都可以在不使用doc.save(pdfname);
我用过
var hiddenElement = document.createElement('a');
hiddenElement.href = '#' ;
hiddenElement.target = '_blank';
hiddenElement.download = doc.output('datauri');
hiddenElement.click();
但上面的代码与doc.save(pdfname)相同; ,甚至.pdf扩展名也没有显示
谢谢