=====================================================
I think you forgot to give command line code to launch “VeryPDF DocConvertor COM Service”,
We tried using below code to start service from .Net but it’s not working. Can you please help us?
Dim StartInfo As New ProcessStartInfo
StartInfo.FileName = "doc2pdf_service.exe"
StartInfo.Arguments = " -exe"
StartInfo.WorkingDirectory = "D:\Downloads\VeryPDF\doc2pdf_com_full_v2.5\doc2pdf_com_full_v2.5\"
StartInfo.UseShellExecute = True
Process.Start(StartInfo)
=====================================
If you run DocConverterCOM as a normal Windows application, you can use your sample code to launch DocConverterCOM application,
Dim StartInfo As New ProcessStartInfo
StartInfo.FileName = "doc2pdf_service.exe"
StartInfo.Arguments = " -exe"
StartInfo.WorkingDirectory = "D:\Downloads\VeryPDF\doc2pdf_com_full_v2.5\doc2pdf_com_full_v2.5\"
StartInfo.UseShellExecute = True
Process.Start(StartInfo)
However, if you use DocConverterCOM as a Windows Service, you need launch it by following command line,
net start "VeryPDF DocConverter COM Service"
e.g.,
Dim StartInfo As New ProcessStartInfo
StartInfo.FileName = "cmd.exe"
StartInfo.Arguments = " net start \"VeryPDF DocConverter COM Service\""
StartInfo.WorkingDirectory = "C:\"
StartInfo.UseShellExecute = True
Process.Start(StartInfo)
VeryPDF
================================
Thanks for your reply. This is exactly what we were looking for.
I have one more questions, Is there a way/method to check number of pages in PDF so that we can add extra check in our code. Idea is to check number of pages in PDF before appending signature page to it and after appending signature page.
============================
You can count the pages in PDF files easily, please refer to following web page for more information,
VeryPDF
============================
We been ask to prove that this tool will append HTML 2 PDF every time. We have seen that there’s not good error trapping/handling available with this one. Is there a way to make 100% sure of job running and appending page? We have already added check for number of pages before and after appending html and also added check to make sure that doc2pdf_service.exe process is running.
Also can you please tell us what is ISO standards or security settings we are using for this tool?
============================
1). We apologize for any inconvenience this may have caused to you, this is a strange problem of append HTML file to existing PDF file, when we run the command line in CMD window, it does append HTML file to PDF file without any problem, this problem is appear in ASP code only, we sure it is caused by permission settings, but we can’t find out the reason at the moment.
However, in order to solve this problem quickly, we can present a copy of PDF Split-Merge Command Line application to you free, you can convert HTML file to PDF file first, and then call PDF Split-Merge Command Line application to combine two PDF files into one PDF file, we sure this solution will okay to you.
You can download the full version of PDF Split-Merge Command Line application from following URL,
XXXXXXXXXXXXXXXX
After you unzip it to a folder, you can run following command line to merge two PDF files into one PDF file,
Pdfpg.exe C:\test1.pdf C:\test2.pdf C:\out.pdf
You can call pdfpg.exe from your ASP code to combine two PDF files into one PDF file easily, we sure this solution will solve “appending HTML to PDF file” problem quickly.
2). Sorry, we don’t understand your meaning, do you wish create the PDF file with security settings?
VeryPDF
============================