简体   繁体   English

使用 VBA 压缩 Office 中的图像

[英]Compress Images in Office with VBA

I'm looking for a way to programmatically emulate PowerPoint and Word's behavior of compressing pictures to 150 or 96 dpi (ppi) (and removing crops, if there).我正在寻找一种方法来以编程方式模拟 PowerPoint 和 Word 将图片压缩到 150 或 96 dpi (ppi)(并删除裁剪,如果有)的行为。 I need to make a whole ton of presentations and documents smaller for distribution and can't open them up one by one to change DPI by hand for all of them.我需要将大量演示文稿和文档制作得更小以进行分发,并且无法一个一个地打开它们来手动更改所有这些文件的 DPI。 Is there any way to do this with VBA?有没有办法用 VBA 做到这一点?

没有很多简单的方法可以做到这一点,但可以使用这些技术: http : //www.eggheadcafe.com/microsoft/Office-COM-Add-Ins/32877260/compressing-inlineshapes-in-code.aspx

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

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