Skip to main content
Kiran Shah
Participant
February 28, 2020
Question

How we can use BackgroundTask in Indeisgn Script to get the status of the job

  • February 28, 2020
  • 1 reply
  • 587 views

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?

This topic has been closed for replies.

1 reply

Community Expert
February 28, 2020

Hi Kiran,

 

You could use the asynchronousExportFile to export the pdf in an asynchronous way, but unfortunately this method is present only on the desktop version of the software and not on the server version. Apart from this method there is no other option to process the export on the background thread.

 

-Manan

-Manan