Docs/Skills/Office to PDF

Office to PDF

Convert Word, Excel and PowerPoint files to PDF

OperationalCredits 30 per callp50 2112msDocuments

Overview

Documents are converted with LibreOffice, so fonts, tables, images and page layout are kept as closely as an office suite would print them. The file's extension is checked against its contents, and a file that turns out to be another office format is converted as what it really is. Each call accepts one document up to 10 MB. Password-protected documents are not supported.

Live Test Office to PDF Skill →

The tool

Once your client is connected to the VerveKit server, this appears in its tool list as OfficetoPDF. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.

Tool call
{
  "name": "OfficetoPDF",
  "arguments": {}
}

Connecting

One server URL covers every skill in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.

{
  "mcpServers": {
    "vervekit": {
      "url": "https://api.vervekit.com/v1/mcp"
    }
  }
}

Per-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.

Arguments

These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.

ArgumentTypeDescription
documentOptionalstringThe document to convert (up to 10 MB): doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, rtf, txt or csv, or a public URL to one
pageRangesOptionalPremiumstringPages to convert, such as 1-3,5. Converts the whole document when omitted
length 0–100
landscapeOptionalPremiumbooleanLay the pages out in landscape orientation

What the model gets back

The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.

Result
{
  "status": "ok",
  "error": null,
  "data": {
    "pdfName": "8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdf",
    "inputName": "SampleDoc.docx",
    "inputFormat": "docx",
    "pageCount": 2,
    "landscape": false,
    "pageRanges": null,
    "size": 23654,
    "expires": 1792400000000,
    "downloadURL": "https://storage.googleapis.com/apiverve/APIData/officetopdf/8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdf?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792400000&Signature=SAMPLE"
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
pdfNamestring8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdfFile name of the PDF
inputNamestringSampleDoc.docxFile name of the input document
inputFormatstringdocxFormat the document was converted as, detected from its contents (docx, xlsx, pptx...)
pageCountnumber2Pages in the PDF
landscapebooleanfalseWhether landscape orientation was applied
pageRangesobjectnullThe pages converted, or null for the whole document
sizenumber23654Size of the PDF in bytes
expiresnumber1792400000000When the download link expires (Unix time in milliseconds)
downloadURLstringhttps://storage.googleapis.com/apiverve/APIData/officetopdf/8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdf…Signed link to download the PDF, valid for 2 days

Failure modes

Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This skill is not part of VerveKit. Check the catalog.
429Out of credits, or a brief rate limit. The message tells them apart.

A call costs 30 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.

Use cases

Document Archiving
Store contracts, letters and reports as PDFs so they open the same way everywhere, years later.
Invoice and Quote Delivery
Turn invoices or quotes generated as Word or Excel files into PDFs before emailing them to customers.
Upload Normalization
Accept any office file from users and keep a single PDF copy for previews and downstream processing.
Print Preparation
Convert slide decks and spreadsheets to fixed-layout PDFs for printing or sharing.

Other ways to use Office to PDF

Set up Office to PDF on VerveKit, or reach the same source a different way. Your VerveKit account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →

More in Documents:

Was this page helpful?