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.
{
"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"
}
}
}https://api.vervekit.com/v1/mcpPer-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.
| Argument | Type | Description |
|---|---|---|
documentOptional | string | The 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 |
pageRangesOptionalPremium | string | Pages to convert, such as 1-3,5. Converts the whole document when omitted length 0–100 |
landscapeOptionalPremium | boolean | Lay 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.
{
"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.
| Field | Type | Example | Description |
|---|---|---|---|
pdfName | string | 8f3c2a51-6d0e-4b7a-9c1f-2e5d7a9b4c10.pdf | File name of the PDF |
inputName | string | SampleDoc.docx | File name of the input document |
inputFormat | string | docx | Format the document was converted as, detected from its contents (docx, xlsx, pptx...) |
pageCount | number | 2 | Pages in the PDF |
landscape | boolean | false | Whether landscape orientation was applied |
pageRanges | object | null | The pages converted, or null for the whole document |
size | number | 23654 | Size of the PDF in bytes |
expires | number | 1792400000000 | When the download link expires (Unix time in milliseconds) |
downloadURL | string | https://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.
| Status | What it means |
|---|---|
400 / 422 | The arguments did not validate. The message names the offending one. |
401 | The OAuth session is invalid or expired — reconnect the server. |
403 | Blocked by a key restriction or an IP allow-list. Never a bad identity. |
404 | This skill is not part of VerveKit. Check the catalog. |
429 | Out 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.
Related
More in Documents: