Copy link to clipboard
Copied
Hi,
For a little JS script I am writing I need to get the hostname of the pc for printing
it on the PDF document. But until now I was not able to manage it.
Does someone now a little line of code to get the systems hostname?
(System: Windows 8.1 / Windows 10; Adobe: Version 11.0.16)
Tanks Housy
Copy link to clipboard
Copied
I can't imagine it is possible to get sensitive info like this.
Copy link to clipboard
Copied
Is there any chance to make a network request and receive my own hostname from another
server that resolves it via DNS and sends it back to me.
Copy link to clipboard
Copied
Well a SOAP request is possible but requires a LiveCycle server product to prepare the file. You can submit a form and get an FDF reply in fields, but expect the user to need to confirm. Alternative: You could store it as a variable in a startup script.
Copy link to clipboard
Copied
Thanks a lot for the quick response. If the user has to confirm it this option is not possible in my case.