|
-
January 18th, 2011, 02:42 PM
#1
Converting TIF images to PDF by passing .exe file with its aruments
I have one .exe file which converts *.tif images into *.pdf file. And i have one class library where i need to pass this .exe file with its arguments. Here arguments i need to pass are scalesector, outputpath (path to generate pdf file) and inputpath (path where tif image exists).
Here i have big tif images like its height will be more than 60,000. So i need to achieve it in C#.
I have written the code as below.
But i am unable to get the PDF in output directory. What may be the problem?
When i checked Output directory will be empty.
private void converttopdf()
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "E:\\pdfbigimage_src\\Debug\\pdfbigimage.exe";
startInfo.Arguments = "-s 0.4 -o E:\\output\\out9.pdf E:\\Input_Images\\SI00004623\\2010026567_001.tif";
startInfo.Verb = null;
startInfo.RedirectStandardOutput = true;
startInfo.UseShellExecute = false;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(startInfo);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|