Skip to content

Active

PDF Tools

A small web app to remove the password from a PDF and to merge several PDFs into one.

Read this in Español

Context

A small tool for two everyday PDF tasks: removing the password from a file and joining several documents into one.

What it does

  • Remove password: takes a protected PDF and its password and returns an unprotected copy.
  • Merge PDFs: combines several PDFs into a single file in the order you choose.

The site also includes the legal notice, privacy policy and cookie policy pages that a public tool needs.

Architecture

  • The front end is a React and TypeScript app built with Vite, served from S3 behind CloudFront.
  • The back end is a Node.js service that calls qpdf. It is packaged as a container image and runs on AWS Lambda behind an API Gateway HTTP API.
  • Terraform defines the whole stack: storage, CDN, certificates, DNS, the container registry and permissions.
  • Docker Compose runs the same front end and back end locally.

Engineering decisions

  • Use a proven tool. PDF handling is delegated to qpdf instead of reimplementing it, and the Lambda container image carries the binary.
  • No server to maintain. The back end runs on Lambda, so cost follows usage.
  • Same code locally and in production. The back end has a local server and a Lambda handler around the same logic, so I can develop with Docker Compose.

← All projects