How to call Image to PDF Converter Command Line (img2pdf.exe) from 64 bit .NET and C# source code to convert TIFF files to PDF files?

I'm having a hard time believing there isn't a better example of using this from 64 bit .NET. I've tried 2 of your examples, and most of the knowledge base and it's a mismash of half baked stuff that doesn't work out of the box. It's very frustrating. Can you please point me to an actual working example of calling this from 64 bit .NET?

I'm using .NET 4.5 Visual Studio 2013 on 64 bit Win 7 machine.


How do you call "Image to PDF Converter Command Line" from your C# code currently?

You may download "Image to PDF Converter Command Line" from following web page,

after you download and unzip it to a folder, you can run following command line to convert your TIFF file to PDF file,

img2pdf.exe -o F:\output.pdf F:\input.tif

You can use following C# code to call img2pdf.exe to convert TIFF file to PDF file,

using System.Diagnostics;

class Program
    static void Main()
    /// <summary>
    /// Launch the legacy application with some options set.
    /// </summary>
    static void LaunchCommandLineApp()
        // Use ProcessStartInfo class
        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.CreateNoWindow = false;
        startInfo.UseShellExecute = false;
        startInfo.FileName = "D:\\VeryPDF\\img2pdf.exe";
        startInfo.WindowStyle = ProcessWindowStyle.Hidden;
        startInfo.Arguments = "-o F:\\output.pdf F:\\input.tif";
            // Start the process with the info we specified.
            // Call WaitForExit and then the using statement will close.
            using (Process exeProcess = Process.Start(startInfo))
            // Log error.

We hoping this C# example will work fine to you, please to try.


VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!