How to convert TIFF to PDF document.

            using Apitron.Image2Pdf;
            ...
            private static void Main(string[] args)
            {
                // open and load the TIF image files
                string[] images = Directory.GetFiles(@"\Documents\", "*.tif");

                // this objects represents a PDF document
                Document document = new Document();

                 // process and save images to PDF one by one
                foreach (string image in images)
                {
                    document.AddImage(image,new PageSettings()); //save all tiff frames
                }
                document.Save("ConvertTiffToPdfSample.pdf");
            }
        
Back to List