Can we compress PDF files using javascript? If yes, how & If no, why?

牧云@^-^@ 提交于 2020-01-02 04:33:16

问题


I've implemented upload documents functionality on browser where a user can upload around 4-5 documents at a time. However, when we upload the documents having file size around 5MB and having slow internet connection(set slow 3G network in the browser's dev tools), we can not upload all the files due to internet timeout!

To upload documents successfully having large size and slow internet connection, I've compressed the images and it solves my issue. But the user can also upload PDF files of large size. How can we compress PDF files and then upload?

来源:https://stackoverflow.com/questions/50406644/can-we-compress-pdf-files-using-javascript-if-yes-how-if-no-why

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!