PDF to BMP Conversion APIs
Load PDF to .NET Project
Flexible file loading methods are supplied for .NET application, including loading from local PDF file and loading from stream (memory stream and file stream).
public bool LoadPDF(string fileName);
public bool LoadPDF(Stream stream);
Get to Know PDF Page Size
For better implementing PDF-to-BMP conversion in .NET project, original page size can be obtained. .NET developers can reference the original PDF page size before specifying the wanted BMP image size.
public int GetPageHeight(int pageIndex);
public int GetPageWidth(int pageIndex);
Get the Converted BMP Image
.NET developers can easily get a PDF document page and then change it to a BMP image. The method below is used to specify a page via index parameter. In addition, several defined pages can be turned into BMP image files simultaneously.
Public Bitmap ToImage(int pageIndex);
If you would like to resize the output .bmp image(s), please add the code below.
Public Bitmap ToImage(int pageIndex, int width, int height);