How to convert any file to .pdf using Adobe PDF Printer ?
-
Hi, I've an application developed in ASP.Net to convert any file to pdf file using PDF Printer. In the .aspx page I've kept one button control and in the click event I've written : protected void Button1_Click(object sender, EventArgs e) { try { System.Diagnostics.Process printProcess = new System.Diagnostics.Process(); printProcess.StartInfo.FileName = "E:\\Krushna.doc"; printProcess.StartInfo.Verb = "printto"; printProcess.StartInfo.Arguments = "\"Adobe PDF\""; printProcess.StartInfo.WindowStyle = ProcessWindowStyle.Minimized; printProcess.StartInfo.CreateNoWindow = true; printProcess.Start(); printProcess.Dispose(); } catch (Exception ex) { throw ex; } } I've set the PDF Printer to my default printer. In the properties of the PDF Printer, in the Port tab, I've set the port to "My Document\*.pdf " . It will save the .pdf file to My Document. I'm using ASP.Net 2.0 with IIS 5.1 installed. The issue is : This is working fine while running the application directly(i.e. the Krushna.doc file is converting to Krushna.pdf and save to My Document Folder) . But when the application running from IIS, it is asking to save the pdf file i.e. one save dialog window is opened. But I need to directly save the pdf file to the My Document Folder. Please reply...It is urgent requirment. Thank you.
--Krushna Chandra Sahu prfkrushna@gmail.com
-
Hi, I've an application developed in ASP.Net to convert any file to pdf file using PDF Printer. In the .aspx page I've kept one button control and in the click event I've written : protected void Button1_Click(object sender, EventArgs e) { try { System.Diagnostics.Process printProcess = new System.Diagnostics.Process(); printProcess.StartInfo.FileName = "E:\\Krushna.doc"; printProcess.StartInfo.Verb = "printto"; printProcess.StartInfo.Arguments = "\"Adobe PDF\""; printProcess.StartInfo.WindowStyle = ProcessWindowStyle.Minimized; printProcess.StartInfo.CreateNoWindow = true; printProcess.Start(); printProcess.Dispose(); } catch (Exception ex) { throw ex; } } I've set the PDF Printer to my default printer. In the properties of the PDF Printer, in the Port tab, I've set the port to "My Document\*.pdf " . It will save the .pdf file to My Document. I'm using ASP.Net 2.0 with IIS 5.1 installed. The issue is : This is working fine while running the application directly(i.e. the Krushna.doc file is converting to Krushna.pdf and save to My Document Folder) . But when the application running from IIS, it is asking to save the pdf file i.e. one save dialog window is opened. But I need to directly save the pdf file to the My Document Folder. Please reply...It is urgent requirment. Thank you.
--Krushna Chandra Sahu prfkrushna@gmail.com
you joking, are you? if you are serious about converting files to pdf using a free tool look at Ghostscript [^]
Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
-
you joking, are you? if you are serious about converting files to pdf using a free tool look at Ghostscript [^]
Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
Hi Yusuf, Thank you for your reply. I'm not joking. Have you checked the code given? If not, then please check and reply me.
--Krushna Chandra Sahu prfkrushna@gmail.com