Download document PDF
The PDF of a finalised invoice or quote.
MCP tool lexware_office_read → download_document_pdf
read
Returns a download link for the PDF Lexware Office generated when the document was finalised. A draft has no PDF; use get_document to read it instead. For an e-invoice in XRechnung format the document is an XML file, and the link points to that file.
Parameters
| Name | Type | Description |
|---|---|---|
| document_id string required | string | Document ID from list_documents or create_invoice. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lexware_office_read",
"arguments": {
"operation": "download_document_pdf",
"arguments": {
"document_id": "document_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"document_id": "d_9c31be",
"number": "RE1031",
"file_name": "RE1031.pdf",
"download_url": "https://files.example.com/f_3b90aa/RE1031.pdf"
},
"isError": false
}