Skip to main content
Participant
Feb 23, 2015 2:37 PM UTC
Question

Cold Fusion PDF Generation of Asynchronous HTML File

I have a report that is generated through various JavaScript asynchronous requests. We are now required to produce a PDF, save it on the server and email that report to the user using Cold Fusion. When generating PDF, Cold Fusion makes an HTTP request for the page to be printed and waits for a 200 response.

The problem is the 200 response is received before all the async requests are fulfilled. Apart from rewriting the report page entirely in ColdFusion, any ideas as to how to accomplish this? That is, wait for all the async requests to be fulfilled prior to generating a PDF to be saved and emailed.

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

BKBK
Community Expert
Community Expert
Mar 18, 2015 10:01 PM UTC

There is a contradiction in terms in what you require. Waiting for all requests to be fulfilled prior to generating a PDF implies a synchronous request, not an asynchronous one.

Translate