How to change Bind Port Number in DocConverter COM product?

PDFcamp Printer and DocConverter COM products can be downloaded from following web page,

https://www.verypdf.com/pdfcamp/pdfcamp_setup.exe

https://www.verypdf.com/app/pdfcamp-printer/try-and-buy.html#buy-sdk

http://www.toppdf.com/pdfcamp/doc2pdf_com_trial.zip

Open the “doc2pdf_config.ini” file in notepad application,

+++++++++++++++++++++++++++++++++++++++++

[doc2pdf_config]
Timeout=5
UseShellPrint=0
AutoKillProcess=1
HTML2PDFReturnImmediately=1
IsRunUnderUserAccount=0
UserAccountName=Administrator
UserAccountPass=123456
PortNumber=54321
ShowWindowFlag=0

[debug]
outlog=No

+++++++++++++++++++++++++++++++++++++++++

The “PortNumber” value in doc2pdf_config.ini file is for the "doc2pdf_service.exe" application, if you change the “PortNumber” value in doc2pdf_config.ini file, you MUST specify the new PortNumber to html2pdf.exe application.

The “PortNumber” value in doc2pdf_config.ini file must match the html2pdf.exe command line application.

The default PORT number is 54321, if the default PORT number is failed when you run "doc2pdf_service.exe" application, you MUST specify a new PORT number, e.g.,

"html2pdf.exe" "https://www.verypdf.com" "%CD%\output.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

after "doc2pdf_service.exe" application is running, you can convert more documents to PDF files at same time.

You can copy and paste following command lines into a CMD window directly, or put them into a .bat file and run this .bat file to test concurrent conversion, doc2pdf_service.exe is a queue, it will arrange the conversion one by one automatically,

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google1.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google2.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google3.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google4.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google5.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google6.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google7.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

start "" C:\wwwroot\html2pdf.exe "http://www.google.com" "C:\test\google8.pdf" "AutomaticValue=4,Overwrite=yes,KillProcess=no,doc2pdf_service=yes,port=54323"

by the way, html2pdf.exe is not return a value, you can run html2pdf.exe process and wait until it exit, after html2pdf.exe is exit, you can check the exists of output PDF file, if output PDF file is exist, it is indicate conversion successful, otherwise, it is indicate the conversion is fail, you may double check the log file for more information about the error.

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!