Copy link to clipboard
Copied
Hi,
I am new to Indesign and I want to connect to the server of my organization by making a HTTP connection, maintaining login session, sending POST requests and displaying the HTTP response data in Indesign Page.
Also, I want to create a panel and show a pop-up window as well, so that user can login etc.
I went through the SDK tutorial, but I am getting confused whether plugin/script/extension would suit my purpose better?
And is JavaScript sufficient for developing my use case or should I go with c++ approach?
Also, in case I make an extension and share on Adobe exchange, then will people who download it see my source code and is there any way to hide it?
Any help would be appreciated. Thanks
Hi,
There are multiple ways to automate and extend InDesign functionality as correctly identified by you viz, using the C++ sdk, Extendscript i.e. the JS, and creating HTML extensions. I will briefly summarize what can be done using these to help you take a decision on what to use
Copy link to clipboard
Copied
Hi,
There are multiple ways to automate and extend InDesign functionality as correctly identified by you viz, using the C++ sdk, Extendscript i.e. the JS, and creating HTML extensions. I will briefly summarize what can be done using these to help you take a decision on what to use
For your use case i think HTML extension would be the best choice and then C++ plugin if needed.
Your other question regarding safeguarding the code in case of HTML extension, well you could use some code obfuscation tools and the extendscript can be converted into binary format, the code is also code signed for uploading to Adobe exchange, This is the only form of code safeguards for now
I hope this helps you take a decision
-Manan
Copy link to clipboard
Copied
I want to connect to the https server to sending POST request via javascript.
Can you please advice.
Copy link to clipboard
Copied
Can be done in a couple of ways
You could use the Socket object available to JS and create a TCP connection to the server. But this does not provide us the higher level protocol support, which would need to be added somehow. Kris has done an implementation around it for Get calls but mentions that POST is also easy to add on. I am no expert in Network programming, so better you read his blog on the subject
https://rorohiko.blogspot.com/2008_07_01_archive.html
Second way could be to create a library in C++ that exposes methods which can be loaded in JS, the POST call would be made by the C++ library and you just need to make a call to it from the JS. Basicexternalobject is the sample InDesign shipped for this approach
-Manan