简体   繁体   English

通过 C# 减小 PDF 文档大小

[英]Reduce PDF document size through C#

I am having my PDF documents having image in it with the size of almost 12MB.我的 PDF 文档中包含大小接近 12MB 的图像。 Now I also need to email that document as an attachment.Which is not allowing to simple Compressing and Decompressing techniques mentioned in earlier forums.现在我还需要将该文档作为附件通过电子邮件发送。这不允许使用前面论坛中提到的简单压缩和解压缩技术。 Please suggest me any alternative for this through C# code.请通过 C# 代码向我建议任何替代方案。

I would suggest you to try reducing PDF file size with Ghostscript.我建议您尝试使用 Ghostscript 减小 PDF 文件大小。

You can read more about reducing PDF file size solution with Ghostscript here: Reducing PDF file size using Ghostscript on Linux didn't work您可以在此处阅读有关使用 Ghostscript 减小 PDF 文件大小解决方案的更多信息: 在 Linux 上使用 Ghostscript 减小 PDF 文件大小不起作用

If you want to use Ghostscript with C#, you can call it from a command line or by using Ghostscript wrapper for .NET: https://ghostscriptnet.codeplex.com如果你想在 C# 中使用 Ghostscript,你可以从命令行或使用 Ghostscript 包装器调用它。NET: https : //ghostscriptnet.codeplex.com

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

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