Does Merging A Group of Multi-page Tiff to PDF be available?

back to home  >  Tech FAQ  >  Merge A Group of Multi-page Tiff to PDF documentusing C#

Question:

Hi,I have a range of multiple pages tiff images, and I need add all of them into a new PDF document. Can your library do this for me? Looking forward to response from you.

---- Martin

Answer:

Hi, Martin.

If you want to convert several multi-page tiff images to one PDF document, of course, pqScan .NET Image to PDF SDK can help you. It means, if you have two multiple pages tiff files, the first tif has 3 pages in, the second tif has 3 pages in. After the converting by our .net PDF to image control, you will get a 7 pages PDF document on your pc. And the page index in the PDF is keeping the original order in the tiff image.

Our .net Image to PDF converter also support to add single page images to PDF document, such as single page tiff, jpeg, bmp, png and gif image.

The following C# code shows how to translate several multiple pages tiff images and merge them to a PDF file. With the intelligent converting methods, it's just the same way of combining the single page image to PDF without extra operation.

using System;
using System.Collections.Generic;
using System.Drawing;
using PQScan.ImageToPDF;

namespace ImageToPDFQuestion
{
    class Program
    {
        static void Main(string[] args)
        {
            //create a PDF converter object.
            PDFConverter pdfConverter = new PDFConverter();

            //add all multi-page tiff image to translate list.
            List<string> tifImages = new List<string>();
            tifImages.Add("multile-page-img1.tif");
            tifImages.Add("multile-page-img2.tif");
            tifImages.Add("multile-page-img2.tif");

            //set output pdf file name.
            string fileName = "result.pdf";

            //convert tiff images to a new PDF document.
            pdfConverter.CreatePDF(tifImages.ToArray(), fileName);
        }       
    }
}

Hope the C# code can be helpful.

---- pqScan Support Team

Online Demo Download Trial How to Encode QR Code with Chinese Words in C# ? How to Insert Barcode Control to MS Excel WorkSheetin C# ? How to Add Barcode Image to MS Excel in C# ? How can I Create Barcode to Crystal Report in Visual Studio ? Can I Read Barcode in PDF document using C#? Can I Get a Compression Jpeg Image from PDF ? Translate JPG Image to PDF document in C#? Convert specific pages from PDF to images in C# Is it available for reading all of the barcode in a picture by one time? Do You Support Translate Images to PDF from SQL Database? Question about Image Size.