After adding PQScan.ImageToPDF.dll library to your C# programming project as reference, you may directly use the following C# sample code to convert and transform mixed type images to Adobe PDF file. In this example, two types of raster images Jpeg and Bmp are included. By debugging your project, these two image files will be rendered to create a new PDF document.
using System; using PQScan.ImageToPDF; namespace MixedTypeImageToPDF { class Program { static void Main(string[] args) { // Create an instance of PQScan.ImageToPDF.PDFConverter object. PDFConverter converter = new PDFConverter(); // Define PDF page layout. A4 is the most commonly used one. converter.PageSizeType = PageSizeMode.A4; // Set Jpeg and Bmp image types as input files. string[] imgFiles = newstring[2] { "input1.jpg", "input2.bmp" }; // Give a name to output PDF document. string outFile = "mixed-type.pdf"; // Convert to PDF from these two mixed image types. converter.CreatePDF(imgFiles, outFile); } } }