• COMBINED
  • EXTRACTED
  • INDEXED
  • MANUAL

How to merge and split PDF files with your AI

Connect Gotenberg to your AI client to handle document restructuring through simple text instructions.

Ask AI about this page

Short answer

Can I use my AI to organize PDF files?

Yes. You can tell your AI to combine files, pull out specific pages, or add bookmarks to a document. This allows you to restructure files without opening a heavy PDF editor.

Where every file lands.

Document outcomes

Your AI handles the heavy lifting of file manipulation.

COMBINED

Single merged files

The AI takes several separate documents and joins them into one continuous PDF. You get a single file ready for distribution.

EXTRACTED

Split page sets

Your AI pulls specific page ranges out of a larger document. This creates new, smaller files containing only the data you need.

INDEXED

Organized bookmarks

The AI writes or reads bookmarks to help you navigate long documents. This makes finding specific sections much faster.

MANUAL

Human review

You decide which pages to keep or which files to combine. The AI follows your logic, but you maintain final control over the document content.

The workflow

What your AI does when the files arrive.

The AI acts as a bridge between your text commands and the document processing engine.

  1. Combine documents

    The AI takes a list of files you provide and joins them into a single PDF structure.

    merge_pdfs
  2. Isolate pages

    You specify which pages you want, and the AI creates a new file from that selection.

    split_pdf
  3. Add navigation

    The AI writes bookmarks to create a functional table of contents within the file.

    write_pdf_bookmarks
  4. Check structure

    The AI looks at existing bookmarks to ensure the document is organized as you requested.

    read_pdf_bookmarks

Try it

Copy these to start.

Use these prompts to trigger document actions immediately.

Starting points

Swap out the file names and page numbers for your actual documents.

Gotenberg Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_IkDIVkylexUE9eZzBPNF2NCeizigqyr4NO7jaNq0/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Gotenberg capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "gotenberg-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_IkDIVkylexUE9eZzBPNF2NCeizigqyr4NO7jaNq0/mcp"
    }
  }
}
Copy into chat04
  • Merge invoice_01.pdf and invoice_02.pdf into one file.

  • Split the report.pdf so I only have pages 5 through 10.

  • Add bookmarks to the project_plan.pdf for the sections labeled Introduction, Scope, and Timeline.

  • Read the bookmarks in the manual.pdf and tell me what the main sections are.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Gotenberg once, then ask.

One connection gives your AI access to these tools. Your credentials stay encrypted, and you can start managing PDFs right away.

Connect Gotenberg to your AI

FAQ

How this task behaves.

  • 01

    Can the AI edit the text inside my PDF?

    No. The AI can only change the structure of the file, such as merging, splitting, or adding bookmarks.

  • 02

    Will the AI delete my original files?

    No. The AI creates new files based on your instructions; it does not modify or delete your source documents.

  • 03

    Can I merge files from a Google Drive folder?

    The AI can only merge files that you provide or point it to directly within your active session.

  • 04

    Does the AI handle image editing in PDFs?

    No. The tools are strictly for structural changes like page management and bookmarking.

  • 05

    Can the AI see the content of the pages?

    The AI uses the tools to manipulate the file structure, but it does not read the visual content of the pages unless you use a tool designed to extract text.

  • More questions about Gotenberg? The Connector page answers them. See everything the Gotenberg Connector can do

Connect Gotenberg to Claude, Cursor, ChatGPT & more