DocConverter version 10.4.2.21328 or higher is required for the below steps


Run cURL command on ActivePDF DocConverter

Use elevated command prompt


ConvertToPDF with input file:

For Local conversion, use local host or IP of the machine

curl --location --request POST http://localhost:62625/api/DocConverter/Conversion --form InputFile=@C:/TestFiles/testDOC.doc


For Remote conversion, use IP address of the DocConverter machine

curl --location --request POST http://192.X.X.X:62625/api/DocConverter/Conversion --form InputFile=@C:/TestFiles/testDOC.doc


ConvertToPDF with input file and json setting file: 

For Local conversion, use local host or IP of the machine

curl --location --request POST http://localhost:62625/api/DocConverter/Conversion --form InputFile=@C:/TestFiles/testDOC.doc --form Json=@C:/TestFiles/Settings.json


For Remote conversion, use IP address of the DocConverter machine

curl --location --request POST http://192.X.X.X:62625/api/DocConverter/Conversion --form InputFile=@C:/TestFiles/testDOC.doc --form Json=@C:/TestFiles/Settings.json


Notes:

  • Output file will be included in response message, example below
  • For a physical output include --output /path/xxx.pdf  in the curl command


If the conversion is successful the following will be returned in the command prompt


C:\Users\Administrator\Desktop\curl-7.73.0_1-win32-mingw\curl-7.73.0-win32-mingw
\bin>curl --location --request POST http://localhost:62625/api/DocConverter/Conv
ersion --form InputFile=@C:/TestFiles/testDOC.doc
--679b5664-0c8d-4003-8cc6-9d6aa49d19f8
TempFilePath: QzpcUHJvZ3JhbURhdGFcQWN0aXZlUERGXFRlbXBcdGVzdERPQy5wZGY=
Content-Disposition: attachment; filename=testDOC.pdf
Content-Type: application/pdf


Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.


C:\Users\Administrator\Desktop\curl-7.73.0_1-win32-mingw\curl-7.73.0-win32-mingw
\bin 


See attachment for How to install cURL in a Windows environment