pdf 托管和磁盘空间
虽然我不能透露太多相关信息,但我正在考虑制作一个很大的网站,并且会有很多 pdf 文件。然而,磁盘空间并不便宜。我该如何做才能托管所有这些 pdf 文件(用户也会发布它们)而不用完所有这些磁盘空间?
While I can't leak too much information about this, there is a website I am thinking about making that would be large and would have A LOT of pdf files. However, disk space doesn't come cheap. How would I make it so that I can host all these pdfs (users would post them too) without eating up all this disk space?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许对 PDF 的标记进行一些检查?或者设置最大文件大小,也许根据页面数量设置一组最大文件大小?
我正在使用 pdf2html 来处理(=从中获取文本)PDF 文件。
很难说...PDF 是否包含图像或其他会“缩小”kb 的数据?
Maybe do some checks on the markup of the PDF? Or set a max file-size, maybe a set of maxium file-sizes depending on the amount of pages?
I'm using pdf2html to handle (=get text from) PDF files.
It's a bit difficult to say... do the PDF's contain images or other data that will 'shrink' kb's?
这有点像问你如何储存数万亿加仑的盐水而不创造海洋。实在是做不到啊。最好的情况是,您可以管理资源以减少一点空间。例如,如果您的 PDF 可以转换为表单,它们只包含 xfdf 文件中嵌入图像的数据和链接,这可能会减少百分比。但当然也有一些警告。 1) 如果您的 PDF 不是表单且无法标准化,则此方法将不起作用。 2) 如果您的 PDF 大多只是 PDF 格式的图像,那么这根本没有帮助。
That is kind of like asking how you you store trillions of gallons of salt water but not create an ocean. It really cant be done. At the best, you would manage your resources to cut down on the space a bit. For instance, if your PDFs can be turned into Forms, them just have the data and links to the embedded images in an xfdf file, that might cut down a percentage. But there are of course caveats. 1) this wont work if your PDFs arent forms and cant be standardized. 2) If your PDFs are mostly just images in a PDF format, this wont really help at all.