And pdf is being processed later in queue. But in queue approach, user is getting only a confirmation message. User should be provided valid pdf url upon success of request. Pdfkit A wrapper for the wkhtmltopdf makes it very easy to generate PDF from various formats like files, strings, and URLs.You can install it using the following command: pip install pdfkit.I am managing a queue now, once a request come it got queued and a satisfactory message send back in response to the user. PDFKit doesnt actually know when all of the data has been flushed to whatever stream youre writing to (file, http response, etc.).It will take many months to rewrite and test it properly. Module Introduction (0:58) What is Async Await All About (4:08) Transforming Then Catch to Async Await (4:26).If I will change the lib, i have to rewrite those templates according to new library.And each template is of 1000 - 3000 lines. You need to create a promise and await for this promise to finish in the end of these two operations. That's why you always have Hi in your returnData var.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |