Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Convert scanned PDF files to BMP images

Question

I need to process multipage PDF files produced by a scanner. Each page contains just one BMP. Is there a possibility with Quick PDF to read such files and save each page separately as a BMP file? Could you give me a hint, how this can be achieved? We do it so far with Ghostscript, but that's very slow.

Answer

Yes, this is definitely possible using our PDF SDK. You can programmatically convert PDF files to bitmap images with just a few simple steps. I've included some basic C# sample code below which shows you how to do this.

qp.LoadFromFile("C:\\sample.pdf");

int DPI = 96;
int PageNo = 1;
int Option = 0;

/*  Save Page 1 of the scaned PDF file as BMP image (As Option is "0"). 
You can also save in other image formats like:

0 = BMP output
1 = JPEG output
2 = WMF output
3 = EMF output
4 = EPS output
5 = PNG output
6 = GIF output
7 = TIFF output
*/

qp.RenderPageToFile(DPI, PageNo, Option, "C:\\sample.bmp");

As you can see, it's quite straight forward. So in order to convert a folder of PDF files to bitmap images, you would simply process each PDF using the code above and the resulting bitmap images would be saved in the location of your choosing.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum