How to convert a PDF document into BMP format?

Hello guys, I need to convert a PDF document into BMP format. How do I do it?

  • Hi JB1

    You can use THIS Program to get your job done. And its free.

    Anand

  • if you already have Acrobat you can export as other formats. Also, you can try to open the PDF with CorelDRAW and export, but some things can change.

    But the most important question....Why do you want to use the very old format BMP? there's a lot of better formats available (TIF, PSD, PNG, JPG...)

  • Please refer to following demo code to convert PDF to BMP in C#.NET project.
    public static string FolderName = "c:/";

    private void button1_Click(object sender, EventArgs e)
    {
    string fileName = FolderName + "Sample.pdf";

    REDocument doc = REFile.OpenDocumentFile(fileName, new PDFDecoder());//use PDFDecoder open a pdf file
    REDocument doc1 = REFile.OpenDocumentFile(fileName, new PDFDecoder());//use PDFDecoder open a pdf file

    int pageCount = doc.GetPageCount();//get pdf's page count

    for (int pgIdx = 0; pgIdx < pageCount; pgIdx++)
    {
    BasePage aPage = doc.GetPage(pgIdx);//get page from REDocument

    try
    {
    REImage img = (REImage)aPage.ToImage();//translate page to image
    REFile.SaveImageFile(img, FolderName + "output" + pgIdx + ".bmp");//save image
    }
    catch (Exception)
    {
    Debug.WriteLine("Fail to display page " + pgIdx);
    }
    Debug.Write(DateTime.Now.ToString("HH-mm-ss") + "\r\n");
    }
    int pageCount1 = doc1.GetPageCount();
    Debug.WriteLine(pageCount1);