使用C#或命令行PDF格式转换为JPG或PNG

编程入门 行业动态 更新时间:2024-10-21 04:15:50
本文介绍了使用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

本文发布于:2023-07-27 00:08:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219161.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转换为   命令行   格式   PNG   PDF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!