1 Reply Latest reply on Mar 18, 2015 3:01 PM by BKBK

    Cold Fusion PDF Generation of Asynchronous HTML File

    boefly Level 1

      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!