In this blog, we have to add two external js files for converting the. Generating pdfs from web pages on the fly with jspdf. In this example, we have used the clientside jspdf library to generate a pdf. When a pdf is requested, the library constructs a hidden form and submits it to the docraptor api. The css i have added in here is not getting applied in the pdf file. In this case, you have two steps to handle the request. Perfect for event tickets, reports, certificates, you name it.