Skip to content

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

Notifications You must be signed in to change notification settings

SurfEdge/serverless-pdf-watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published