The recommended approach for PDF generation is to use the server side. The Best Way Out - Server-Side Generation It does not scale: If your user is using a low-end device (or even Internet Explorer), your libraries may not be able to generate the PDF efficiently.ĭesigning PDFs using the client-side approach is suitable for large-scale, demanding applications due to the discussed negatives. However, if you choose to sign your document on the client side, you will be putting your keys at risk of exposure. There is no security: You cannot sign a document on the client side without exposing your private key. There is no traceability: You aren’t able to keep track of the location and the device that was used to create the PDF. A user can easily tamper with the HTML content beforehand and compile the PDF in the client application before sending it to the backend. There is no authenticity: Since the PDF is being generated on the client side, the software product has no say in what gets compiled in the PDF. Though it creates a fast and efficient process, it does have its set of negatives. For example, if you’re using React, you might have used compile a PDF and download it directly in the web browser. When tasked with PDF generation, a go-to option would be to generate the PDF on the client side with the available data. Therefore, as a serverless developer, it’s important to ensure that you can design scalable and resilient PDF generation solutions for applications. Likewise, there will come a time when you need to implement a PDF generator on your application as well. For example, SignRequest uses PDFs to email a copy of a signed PDF document when all participants sign it. For example, an application may utilize PDFs to send an email of an invoice for payment confirmation, a report or even a custom-typed document. Using AWS Lambda, Amazon SQS, Amazon API Gateway, Amazon S3, AWS Lambda Layers and Pulumi to Build a Scalable PDF Generation ServiceĪlmost all modern web applications use PDFs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |