Skip to main content
Inspiring
April 16, 2019
Answered

What is asynchronousExportFile() ?

  • April 16, 2019
  • 6 replies
  • 1853 views

Hi experts,

What is asynchronousExportFile();

What is the different between asynchronousExportFile(); and exportFile(); ?

is that asynchronousExportFile(); need a preset?

I mean like this:

cBook.asynchronousExportFile(ExportFormat.PDF_TYPE, cFile, false, cPreset);

thanks

John

This topic has been closed for replies.
Correct answer Manan Joshi

Hi John,

Looking at the thread i see that this is a bug, which as per testing reported on the link have been fixed on CC versions. If you find this happening on latest versions of InDesign as well i would suggest you to file a bug report. If this is happening in some older version of InDesign then i am not hopeful that we will get any patches for them now, you would have to upgrade to a later version of InDesign

-Manan

6 replies

JohnwhiteAuthor
Inspiring
April 18, 2019

thanks Uwe,

John

JohnwhiteAuthor
Inspiring
April 18, 2019

thanks Uwe

Yes, I am doing something while exporting pdf.

so it is still a bug?

John

Community Expert
April 18, 2019

Apparently, yes.

Conclusion: Leave the fingers off the computer while doing exports with exportFile() :-)

Regards,
Uwe

JohnwhiteAuthor
Inspiring
April 17, 2019

Hi Uwe,

I use exportFile()

because asynchronousExportFile() not work for book to export pdf

and I still has this problem, barely

usually if the link is linking to pdf

or ai, or eps

it will cause missing the image, but barely.

John

Community Expert
April 17, 2019

Hm. If you leave the machine alone while exporting to PDF, no clicking around in the interface!, the issue should go away. Completely. At least that's the theory and my experience with exportFile() and this bug.

However, you could experience something else and I'm interested in your findings.

Regards,
Uwe

JohnwhiteAuthor
Inspiring
April 16, 2019

and I still have this problem.

Community Expert
April 17, 2019

Hi Johnwhite ,

to make that clear:

You are using method asynchronousExportFile() with CC 2018.1 and you are not seeing the issue?

( Placed PDFs or placed AI files are missing in exported PDFs when there is user interaction, clicking around in the interface, while the PDFs are exported. )

With method exportFile() used with CC 2018.1 you still see the issue?

Or are you seeing the issue with both methods?

Regards,
Uwe

JohnwhiteAuthor
Inspiring
April 16, 2019

thank you Man,

my version is CC2018

John

Community Expert
April 16, 2019

Asynchronous export does as the name suggests export the pdf using a background thread i.e. InDesign will not be blocked while the pdf is being exported. Whereas in case of sync, the export is done on the main thread and hence InDesign is blocked untill the pdf is completely exported. Regarding the arguments to both these functions you can look up the DOM documentation for the same, however i can confirm that you can use the preset in both these api's.

One more point asynchronous export is not present in InDesign Server, it is available only for the desktop version of InDesign.

-Manan

JohnwhiteAuthor
Inspiring
April 16, 2019

Thank you Man,

Someone says it is a strange behavior,

the come out of pdf will disappear the link (pdf, and ai files) (I mean: not preview in pdf) after using pdf to generate a pdf

see this link please:

[JS][CS4/CS5] Images dropping off in scripted pdf export

use asynchronousExportFile(), it will work pretty well.

I have some problem, may be it is a bug,

so, has not any solution to fix it?

do you have an idea?

John

Manan JoshiCorrect answer
Community Expert
April 16, 2019

Hi John,

Looking at the thread i see that this is a bug, which as per testing reported on the link have been fixed on CC versions. If you find this happening on latest versions of InDesign as well i would suggest you to file a bug report. If this is happening in some older version of InDesign then i am not hopeful that we will get any patches for them now, you would have to upgrade to a later version of InDesign

-Manan