什么C ++库可以用来将PDF转换为Windows上的图像? [英] What C++ library can I use to convert a PDF to an image on windows?

查看:117
本文介绍了什么C ++库可以用来将PDF转换为Windows上的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要分析图像的项目;这些图像的主要来源是网络摄像头,但最近我们要求添加对上传的文件和扫描仪的支持。这很好,在大多数情况下,除非他们希望我们能够使用PDF格式的文档。

I am working on a project in which I need to analyze images; the primary source of these images is the webcam, but recently we've been ask to add support for uploaded files and scanners. This is fine, for the most part, except they'd like us to be able to use documents in PDF format.

我需要一个原始像素位图来处理;在Mac上,我可以使用CoreGraphics将PDF加载到图像缓冲区,但我不知道如何在Windows上拉这个。

I need a raw pixel bitmap for the processing; on Mac, I can use CoreGraphics to load the PDF into an image buffer, but I'm not sure how to pull this off on Windows.

总结:我需要一个C ++库(最好有一个像BSD这样的许可证,因为这是封闭源,但潜在的LGPL可以工作),我可以用来打开一个PDF文件,并导出每个页面作为渲染图像缓冲位图。

To summarize: I need a C++ library (preferably with a license like BSD since this is closed-source, but potentially LGPL could work) that I can use to open a PDF file and export each page as a rendered image buffer bitmap.

推荐答案

ImageMagick。远离和最好的图书馆阅读和写尽可能多的格式 http://www.imagemagick。 org / script / index.php

ImageMagick. Far and away the best library for reading and writing as many formats as possible http://www.imagemagick.org/script/index.php

这篇关于什么C ++库可以用来将PDF转换为Windows上的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆