PDFCc
  1. Misc
PDFCc
  • Security
    • Validate PDF Digital Signature
      POST
    • Sanitize a PDF file
      POST
    • Remove password from a PDF file
      POST
    • Remove digital signature from PDF
      POST
    • Redacts areas and pages in a PDF document
      POST
    • Summary here
      POST
    • Sign PDF with a Digital Certificate
      POST
    • Redacts listOfText in a PDF document
      POST
    • Add watermark to a PDF file
      POST
    • Add password to a PDF file
      POST
  • Pipeline
    • handleData
      POST
  • Misc
    • Update metadata of a PDF file
      POST
    • Remove read-only property from form fields
      POST
    • Grabs all JS from a PDF and returns a single JS file with all code
      POST
    • Replace-Invert Color PDF
      POST
    • Repair a PDF file
      POST
    • Remove blank pages from a PDF file
      POST
    • Process PDF files with OCR using Tesseract
      POST
    • Flatten PDF form fields or full page
      POST
    • Extract images from a PDF file
      POST
    • Extract image scans from an input file
      POST
    • Decompress PDF streams
      POST
    • Optimize PDF file
      POST
    • Auto split PDF pages into separate documents
      POST
    • Extract header from PDF file
      POST
    • Add stamp to a PDF file
      POST
    • Add page numbers to a PDF document
      POST
    • Overlay image onto a PDF file
      POST
  • General
    • Split PDF pages into smaller sections
    • Split PDFs by Chapters
    • Split a PDF file into separate documents
    • Auto split PDF pages into separate documents based on size or count
    • Change the size of a PDF page/document
    • Rotate a PDF file
    • Remove pages from a PDF file
    • Remove images from file to reduce the file size.
    • Rearrange pages in a PDF file
    • Convert a multi-page PDF into a single long page PDF
    • Overlay PDF files in various modes
    • Merge multiple pages of a PDF document into a single page
    • Merge multiple PDF files into one
    • Crops a PDF document
  • Filter
    • Checks if a PDF is of a certain size
    • Checks if a PDF is of a certain rotation
    • Checks if a PDF is greater, less or equal to a setPageCount
    • Checks if a PDF is a set file size
    • Checks if a PDF contains set text, returns true if does
    • Checks if a PDF contains an image
  • Convert
    • Convert a URL to a PDF
    • Convert PDF to XML
    • Convert PDF to Word document
    • Convert PDF to Text or RTF format
    • Convert PDF to Presentation format
    • Convert a PDF to a PDF/A
    • Convert PDF to Markdown
    • Convert PDF to image(s)
    • Convert PDF to HTML
    • Extracts a CSV document from a PDF
    • Convert a Markdown file to PDF
    • Convert images to a PDF file
    • Convert an HTML or ZIP (containing HTML and CSS) to PDF
    • Convert a file to a PDF using LibreOffice
  • Analysis
    • Get security information
    • Get page dimensions for all pages
    • Get PDF page count
    • Get form field information
    • Get font information
    • Get PDF document properties
    • Get basic PDF information
    • Get annotation information
  • Info
    • getUptime
    • Application status and version
    • POST request count
    • Unique users count for POST requests
    • POST requests count for all endpoints
    • Unique users count for POST requests for all endpoints
    • GET request count
    • Unique users count for GET requests
    • GET requests count for all endpoints
    • Unique users count for GET requests for all endpoints
  1. Misc

Add stamp to a PDF file

POST
/api/v1/misc/add-stamp
Misc
This endpoint adds a stamp to a given PDF file. Users can specify the stamp type (text or image), rotation, opacity, width spacer, and height spacer. Input:PDF Output:PDF Type:SISO

请求参数

Body 参数multipart/form-data
fileInput
file 
必需
The input PDF file
pageNumbers
string 
必需
The pages to select, Supports ranges (e.g., '1,3,5-9'), or 'all' or functions in the format 'an+b' where 'a' is the multiplier of the page number 'n', and 'b' is a constant (e.g., '2n+1', '3n', '6n-5')
默认值:
all
示例值:
all
stampType
enum<string> 
必需
The stamp type (text or image)
枚举值:
textimage
stampText
string 
可选
The stamp text
默认值:
Stirling Software
示例值:
Stirling Software
stampImage
file 
可选
The stamp image
alphabet
enum<string> 
可选
The selected alphabet of the stamp text
枚举值:
romanarabicjapanesekoreanchinese
默认值:
roman
示例值:
roman
fontSize
number <float>
必需
The font size of the stamp text and image
默认值:
30
示例值:
30
rotation
number <float>
必需
The rotation of the stamp in degrees
默认值:
0
opacity
number <float>
必需
The opacity of the stamp (0.0 - 1.0)
默认值:
0.5
示例值:
0.5
position
enum<integer> <int32>
必需
Position for stamp placement based on a 1-9 grid (1: bottom-left, 2: bottom-center, 3: bottom-right, 4: middle-left, 5: middle-center, 6: middle-right, 7: top-left, 8: top-center, 9: top-right)
枚举值:
123456789
默认值:
5
示例值:
5
overrideX
number <float>
必需
Override X coordinate for stamp placement. If set, it will override the position-based calculation. Negative value means no override.
默认值:
-1
示例值:
-1
overrideY
number <float>
必需
Override Y coordinate for stamp placement. If set, it will override the position-based calculation. Negative value means no override.
默认值:
-1
示例值:
-1
customMargin
enum<string> 
必需
Specifies the margin size for the stamp.
枚举值:
smallmediumlargex-large
默认值:
medium
示例值:
medium
customColor
string 
可选
The color of the stamp text
默认值:
#d3d3d3
示例值:
#d3d3d3

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/misc/add-stamp' \
--form 'fileInput=@""' \
--form 'pageNumbers="all"' \
--form 'stampType=""' \
--form 'fontSize="30"' \
--form 'rotation=""' \
--form 'opacity="0.5"' \
--form 'position="5"' \
--form 'overrideX="-1"' \
--form 'overrideY="-1"' \
--form 'customMargin="medium"'

返回响应

🟢200成功
*/*
OK
Body
string <byte>
可选
示例
"string"
修改于 2025-06-22 03:57:35
上一页
Extract header from PDF file
下一页
Add page numbers to a PDF document
Built with