if you want to create a new PDF from mixed type of image(here are Tiff and Bmp at the same time), the following vb.net sample code is what you need.
Imports System.IO Imports PQScan.ImageToPDF Namespace MixedTypeImageToPDF Class Program Private Shared Sub Main(args As String()) 'Create an instance of PQScan.ImageToPDF.PDFConverter object. Dim converter As New PDFConverter() 'Set PDF page layout, A4 is most widely used. converter.PageSizeType = PageSizeMode.A4 'Set mixed image type: tiff, bmp. Dim imgFiles As String() = New String(1) {"input1.tiff", "input2.bmp"} 'Set output pdf stream. Dim fileStream As New FileStream("mixed-type.pdf", FileMode.Create) 'Generate PDF from images. converter.CreatePDF(imgFiles, fileStream) End Sub End Class End Namespace
If you want to add mixed type of images(here are Jpeg, Gif, Png), and append them to a ready-made PDF document, the vb.net sample code below is just for you.
Imports PQScan.ImageToPDF Namespace AppendMixedTypeImageToPDF Class Program Private Shared Sub Main(args As String()) 'Create an instance of PQScan.ImageToPDF.PDFConverter object. Dim converter As PDFConverter = newPDFConverter() 'Set PDF page layout, if to ImageSize, 'PDF page will display the original size and quality of the source image converter.PageSizeType = PageSizeMode.ImageSize 'Set mixed image type: jpeg, gif and png. Dim imgFiles As String() = New String(2) {"input1.jpeg", "input2.gif", "input3.png"} 'Set output pdf file name. Dim outFile As String = "append-to-pdf.pdf" 'Append multiple type of images to PDF. converter.AppendToPDF(imgFiles, outFile) End Sub End Class End Namespace