简体   繁体   English

创建应用程序以从 PDF 创建 JPEG 图像(缩略图)的最佳方式

[英]Best Way to Create Application to Create JPEG Images (thumbnails) From PDFs

I want to create a simple program that will convert a pdf to a jpg with the longest height or width set to a specific pixel amount and a 1px border applied.我想创建一个简单的程序,它将 pdf 转换为 jpg,最长高度或宽度设置为特定像素量并应用 1px 边框。 All computer that would use it would have Acrobat 5.0 or later installed.所有使用它的计算机都将安装 Acrobat 5.0 或更高版本。 I'm not sure if I could pull this off with something like JavaScript in Acrobat itself or preferably a drag and drop functionality in a windows application written in C# or if there's some better way.我不确定是否可以使用 Acrobat 本身中的 JavaScript 之类的东西,或者最好是 windows 应用程序中的拖放功能,用 C# 或其他更好的方式编写。

As you mentioned C# in your question tags, you can use a .NET wrapper of ImageMagic for using Image Magic which can be used to convert pdf to images.正如您在问题标签中提到的 C# 一样,您可以使用ImageMagic 的 .NET 包装器来使用Image Magic ,它可用于将 pdf 转换为图像。

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

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