资 源 简 介
LibPdf
This library converts converts PDF file to an image. Supported image formats are PNG and BMP, but you can easily add more.
This library uses poppler-qt4 library with QT frontend. Basically it"s managed C++ wrapper over limited subpart of poppler-qt4 functionality.
Usage example:
```
using (FileStream file = File.OpenRead(@"..path opdffile.pdf")) // in file
{
var bytes = new byte[file.Length];
file.Read(bytes, 0, bytes.Length);
using (var pdf = new LibPdf(bytes))
{
byte[] pngBytes = pdf.GetImage(0,ImageType.PNG); // image type
using (var outFile = File.Create(@"..path opdffile.png")) // out file
{
outFile.Write(pngBytes, 0, pngBytes.Length);
}
}
}
```
Installation and configuration