SurfEdge / serverless-pdf-watermark

A simple serverless function to set a watermark to an existing pdf and return the updated pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless PDF Watermark 📝📄

A simple serverless function to set a watermark to an existing pdf and return the updated pdf.

⚠️ Test and use as required ⚠️

Usage

POST /watermark

Body

{
    "x": 10,
    "y": 10,
    "watermark": "Downloaded by name here... Watermark text",
    "font": "Courier",
    "pdf": "JVBERi0xLjQKJcOkw7zD"
}

Supported Fonts

  • Courier
  • Helvetica
  • Times

Response

{
  "status": true,
  "pdf": "BASE64_STRING"
}

Sample Preview

About

A simple serverless function to set a watermark to an existing pdf and return the updated pdf


Languages

Language:JavaScript 100.0%