我想通过使用Base64和iFrame在超文本标记语言页面上查看PDF文件。当我上传一个小于1kb的PDF文件时,它可以工作,任何超过这个数字的都不能。对象数据的测试视图也不起作用。
发布于 2019-12-29 05:55:58
对大型pdf文件大小的关注:
1. On Server site:
Reduce the file size by using any compression method with output is stream string. (Be better to cache the compressed file).
2. On Client site:
Uncompress the compressed string (ie. using pako js) to pdf format and display it in the iframe.好好享受巴迪吧!
https://stackoverflow.com/questions/59514954
复制相似问题