PDF Toolkit

Samples

Convert an image to PDF

Convert an image file (BMP, PNG, JPEG, TIFF...) to PDF

This Code sample requires the PDF Toolkit and is found in: C:\Aquaforest\PDF Toolkit\samples\ImageToPDF


using Aquaforest.PDF;

namespace ImageToPDF
{
    class Program
    {
        static void Main(string[] args)
        {
            ImageToPDFConverter imageConverter = new ImageToPDFConverter(@"..\..\..\documents\source\image.tif", @"..\..\..\documents\output\output.pdf");
            imageConverter.ConvertImageToPDF();
        }
    }
}