使用C#或命令行PDF格式转换为JPG或PNG [英] Convert PDF to JPG or PNG using C# or Command Line
本文介绍了使用C#或命令行PDF格式转换为JPG或PNG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个PDF文件转换为图像。我用于测试目的它提供了一个命令行共有PDF转换器,但它的共享,我需要找到一个自由选择。
I need to convert a PDF file to images. I used for testing purposes "Total PDF Converter" which offers a command line, but it's shareware and I need to find a free alternative.
有谁知道这样一个工具或甚至是一个免费的C#库?
Does anyone knows such a tool or maybe even a free C# library?
推荐答案
的转换
工具(或难懂
从版本7 )从 ImageMagick的束可以做到这一点(和很多更多)。
The convert
tool (or magick
since version 7) from the ImageMagick bundle can do this (and a whole lot more).
在最简单的形式,它只是
In its simplest form, it's just
convert myfile.pdf myfile.png
或
magick myfile.pdf myfile.png
这篇关于使用C#或命令行PDF格式转换为JPG或PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文