How we can use BackgroundTask in Indeisgn Script to get the status of the job
We have developed an application in ASP.Net and calling the Indesign script using SOAP API.
I am generating the PDF files using Indesign script with placing all related images/PDF files in the Indesign template and it takes around 40-50 seconds to generate the PDF file. I have heard about the BackgroundTask property of Indesign script, which returns the status of the PDF File creation process. Please refer link below.
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#BackgroundTask.html
I would like to show the progress to user because its very difficult for user to wait 40-50 seconds without knowing any status/progress of the process.
Can anyone has used this kind of feature? Please guide me. Is there any other way we can show the Indesign process progress in the application?