It seems that even though the htmltools.exe can write to a network folder, it can't read an html file from the same folder.
It does work if you map a drive to the network folder and reference the html file that way.
rem works reading and writing to local folder
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 600 -height 900 -margin 20x30x25x15 "test.HTM" "test1.pdf"
rem works using Z to map to network drive for html file
rem htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 600 -height 900 -margin 20x30x25x15 "Z:\Brazil\BRAPR0111_6169\test.htm" "TEST2.pdf"
rem works writing to network folder
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 600 -height 900 -margin 20x30x25x15 test.HTM "\\qaretailweb01.am.verypdf.com\INVOICES\Brazil\BRAPR0111_6169\PDF_IndividualInvoice\test3.pdf"
rem Does NOT works reading from network folder (and writing PDF to local folder)
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 600 -height 900 -margin 20x30x25x15 "\\qaretailweb01\INVOICES\Brazil\BRAPR0111_6169\test.HTM" "test4.pdf"
rem Does NOT works reading from network folder (and writing PDF to network folder)
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 600 -height 900 -margin 20x30x25x15 "\\qaretailweb01.am.verypdf.com\INVOICES\Brazil\BRAPR0111_6169\test.HTM" "\\qaretailweb01.am.verypdf.com\INVOICES\Brazil\BRAPR0111_6169\PDF_IndividualInvoice\test.pdf"
Customer
---------------------------------------
We apologize for any inconvenience this may have caused to you. We suggest you may map network folder to local folder first, then you can convert HTML to PDF file on this local folder, this is the easiest method at the moment.
We will research the problem of reading from network folder at later, we will let you know as soon as we have any finding on this problem, thanks for your patience.
VeryPDF
---------------------------------------
Now I am going to help you guys out 🙂
In order to read a file on the network, when using the -webkit2 option, you need to put the path format in a web path format (the same path format which Google Chrome uses when viewing a network file. (file://qaretailweb01/INVOICES/37053078.HTM)
So the below format actually worked fine.
htmltools.exe -webkit2 -width 590 -height 900 -margin 20x20 -append 2 "file://qaretailweb01/INVOICES/37053078.HTM" "\\qaretailweb01.am.verypdf.com\INVOICES\37053078_9.pdf"
Customer
---------------------------------------
Thanks for your great information, your information is very useful for our future customers.