New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

aws-lambda-pdf

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-pdf

Create PDFs using Amazon Lambda functions

Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
5
Maintainers
0
Weekly downloads
 
Created
Source

AWS Lambda PDF

An AWS Lambda function that will accept HTML as its input and return a PDF.

This is a work in progress.

Example

This will produce a PDF with the text "Hello world" in it:

curl https://your-lambda-url \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/pdf' \
  --data-raw $'{"html":"<html><body><p>Hello world</p></body></html>"}' \
  --output production.pdf

Caveats

  • JavaScript is disabled
  • PDF generation occurs after domcontentloaded
  • CSS must be embedded as style tags

Keywords

aws

FAQs

Package last updated on 20 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts