What C ++ library can I use to convert PDF to image on windows?

I am working on a project in which I need to analyze images; The main source of these images is a webcam, but recently we asked to add support for downloaded files and scanners. This is normal, for the most part, except that they would like us to be able to use PDF documents.

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

To summarize: I need a C ++ library (preferably with a license, for example, with BSD, since this is a closed source device, but maybe LGPL can work), which I can use to open a PDF file and export each page as a raster image buffer images.

+6
source share
2 answers

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

+5
source

Example:

pdf2swf --pages 1 -T9 PDF_FILE.pdf -o temp.swf swfrender temp.swf --output 1.png 
  • With poppler

Qt usage example http://bit.ly/8UksK6

+3
source

Source: https://habr.com/ru/post/892181/


All Articles