pq scan
User-defined Image Size (PDF to single page type image) -- Visual Basic.NET sample
Changing DPI and specifying each page size of PDF are both supplied for PDF to single page type images(jpg, tiff, bmp, png, gif).
Imports System.Drawing Imports System.Drawing.Imaging Imports PQScan.PDFToImage Namespace SpecifyImageSize Class Program Private Shared Sub Main(args As String()) ' Create an instance of PQScan.PDFToImage.PDFDocument object. Dim pdfDoc As New PDFDocument() ' Load PDF document. pdfDoc.LoadPDF("sample.pdf") ' Set dpi to render image pdfDoc.DPI = 96 'Get total page count. Dim count As Integer = pdfDoc.PageCount For i As Integer = 0 To count - 1 'Convert page to image in target size Dim bmp As Bitmap = pdfDoc.ToImage(i, 100, 200) 'Save image bmp.Save("output" & i & ".jpg", ImageFormat.Jpeg) Next End Sub End Class End Namespace