Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.spojit.com/llms.txt

Use this file to discover all available pages before exploring further.

The PDF Tools connector provides operations for working with PDF documents — extracting text, merging, splitting, and manipulating pages.
No connection required — this utility connector works out of the box.
All PDF inputs and outputs are base64-encoded strings.

Tools

pdf
string
required
Base64-encoded PDF.
maxPages
number
Maximum number of pages to extract.
Example request:
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PAovVH...",
  "maxPages": 2
}
Example response:
{
  "text": "Invoice #1042\nDate: 2025-03-15\n\nBill To:\nAcme Corp\n123 Main St\n\nItem          Qty   Price\nWidget A        3   $29.99\nGadget B        1   $59.99\n\nTotal: $149.96",
  "numPages": 2,
  "info": {
    "Title": "Invoice 1042",
    "Author": "Billing System",
    "Creator": "ReportGen 3.0"
  }
}
Returns page count, title, author, and other metadata.
pdf
string
required
Base64-encoded PDF.
Example request:
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PAovVH..."
}
Example response:
{
  "pageCount": 3,
  "title": "Quarterly Report Q1 2025",
  "author": "Finance Team",
  "subject": "Q1 Financial Summary",
  "creator": "Google Docs",
  "producer": "Skia/PDF m133",
  "creationDate": "2025-03-20T14:30:00.000Z",
  "modificationDate": "2025-03-21T09:15:00.000Z",
  "keywords": null,
  "pages": [
    { "pageNumber": 1, "width": 612, "height": 792, "rotation": 0 },
    { "pageNumber": 2, "width": 612, "height": 792, "rotation": 0 },
    { "pageNumber": 3, "width": 612, "height": 792, "rotation": 0 }
  ]
}
Combine multiple PDFs into a single document.
pdfs
string[]
required
Array of base64-encoded PDFs.
Example request:
{
  "pdfs": [
    "JVBERi0xLjQKMSAwIG9iago8PAovVH...",
    "JVBERi0xLjUKJeLjz9MKMSAwIG9iago..."
  ]
}
Example response:
{
  "success": true,
  "pageCount": 5,
  "pdf": "JVBERi0xLjcKMSAwIG9iaiA8PAovVH..."
}
Create a new PDF with only the specified pages.
pdf
string
required
Base64-encoded PDF.
pages
number[]
required
Page numbers to extract (1-indexed).
Example request:
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PAovVH...",
  "pages": [1, 3, 5]
}
Example response:
{
  "success": true,
  "pageCount": 3,
  "extractedPages": [1, 3, 5],
  "pdf": "JVBERi0xLjcKMSAwIG9iaiA8PAovVH..."
}
Split a PDF into individual single-page PDFs.
pdf
string
required
Base64-encoded PDF.
Example request:
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PAovVH..."
}
Example response:
{
  "success": true,
  "totalPages": 3,
  "pages": [
    { "pageNumber": 1, "pdf": "JVBERi0xLjcKMSAwIG9iaiA8PA..." },
    { "pageNumber": 2, "pdf": "JVBERi0xLjcKMiAwIG9iaiA8PA..." },
    { "pageNumber": 3, "pdf": "JVBERi0xLjcKMyAwIG9iaiA8PA..." }
  ]
}
pdf
string
required
Base64-encoded PDF.
degrees
string
required
Rotation angle (clockwise): "90", "180", or "270".
pages
number[]
Pages to rotate (all pages if omitted).
Example request:
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PAovVH...",
  "degrees": "90",
  "pages": [2, 4]
}
Example response:
{
  "success": true,
  "rotatedPages": [2, 4],
  "pdf": "JVBERi0xLjcKMSAwIG9iaiA8PAovVH..."
}
Create a new PDF with the specified pages removed.
pdf
string
required
Base64-encoded PDF.
pages
number[]
required
Page numbers to remove (1-indexed).
Example request:
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PAovVH...",
  "pages": [2, 4]
}
Example response:
{
  "success": true,
  "originalPageCount": 5,
  "newPageCount": 3,
  "removedPages": [2, 4],
  "pdf": "JVBERi0xLjcKMSAwIG9iaiA8PAovVH..."
}