简体   繁体   English

如何使用JSPDF直接写入和保存文件

[英]How to write and save file directly using JSPDF

Is there a way to save jsPDF DIRECTLY into a specific location using chrome ? 有没有一种方法可以使用chromejsPDF 直接保存到特定位置

My current implementation of the jspdf code ( doc.save ) still asks for a location to save the pdf . 我当前的jspdf代码实现( doc.save )仍然要求保存pdf的位置。

Could you guys guide me on a workaround to write the pdf directly when using chrome? 你们可以指导我使用Chrome时直接编写pdf解决方法吗?

I've only seen a solution but it is for firefox : Save pdf directly to file using jspdf 我只看到了一个解决方案,但它是针对firefox使用jspdf将pdf直接保存到文件中

As far as i can see you cant. 据我所知你不能。

It´s depending on what the user selects in the chrome options 这取决于用户在chrome选项中选择的内容

(chrome://settings -> downloads -> checkbox ask where to save ...) (chrome:// settings->下载->复选框,询问保存位置...)

any workaround would be some serious security flaw 任何解决方法将是一些严重的安全漏洞

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM