Useful Properties and APIs
Control PDF Page Size
While converting or adding image file to PDF file, .NET developers can decide the displaying mode of rendered source image. Various PDF page size options are offered. For example, you can customize the size of rendered image to be A4 or keep its original image size.
public PageSizeMode PageSizeType;
Create Adobe PDF Document
When you want to convert a range of raster images and add them into PDF document, you can call the following .NET APIs. Our image to PDF converting SDK can read and load images (JPEG/JPG, PNG, TIFF/TIF, BMP, or GIF) from file in local disk or from Stream(File Stream or Memory Stream). After then, it can rapidly generate a new PDF file and save it in the disk or store it to stream.
public void CreatePDF(string imageFiles, string outFile);
public void CreatePDF(Stream imageStreams, string outFile);
public void CreatePDF(string imageFiles, Stream outStream);
public void CreatePDF(Stream imageStreams, Stream outStream);
Merge Image to PDF File
If a ready-made PDF is on your disk, and there is a demand to append some images to the end of it in your .NET application, the methods below are what you need.
public void AppendToPDF(string imageFiles, string pdfFile);
public void AppendToPDF(Stream imageStreams, string pdfFile);