[{"data":1,"prerenderedAt":234},["ShallowReactive",2],{"navigation-en":3,"/en/operation/documents-en":46,"/en/operation/documents-en-surround":229},[4,8,12,38,42],{"title":5,"path":6,"stem":7},"Overview","/en","en/0.index",{"title":9,"path":10,"stem":11},"Quick start","/en/getting-started/self-hosting","en/1.getting-started/1.self-hosting",{"title":13,"path":14,"stem":15,"children":16},"Operation","/en/operation","en/2.operation/0.index",[17,18,22,26,30,34],{"title":13,"path":14,"stem":15},{"title":19,"path":20,"stem":21},"Installation","/en/operation/installation","en/2.operation/1.installation",{"title":23,"path":24,"stem":25},"Email delivery","/en/operation/mail","en/2.operation/2.mail",{"title":27,"path":28,"stem":29},"Documents","/en/operation/documents","en/2.operation/3.documents",{"title":31,"path":32,"stem":33},"Accounts and roles","/en/operation/accounts-and-roles","en/2.operation/4.accounts-and-roles",{"title":35,"path":36,"stem":37},"Separate hosts","/en/operation/separate-hosts","en/2.operation/5.separate-hosts",{"title":39,"path":40,"stem":41},"Sign-in","/en/sign-in","en/3.sign-in",{"title":43,"path":44,"stem":45},"Backend API v1","/en/api","en/4.api",{"id":47,"title":27,"body":48,"description":221,"extension":222,"links":223,"meta":224,"navigation":223,"path":28,"seo":225,"stem":29,"__hash__":228},"en/en/2.operation/3.documents.md",{"type":49,"value":50,"toc":213},"minimark",[51,56,60,72,76,95,155,159,182,186,202,209],[52,53,55],"h2",{"id":54},"structure","Structure",[57,58,59],"p",{},"Decision notices are generated from Word templates (DOCX). The Docgen document service fills the template with the application data, converts the draft to PDF/A-2b with Gotenberg (LibreOffice) and validates the result with veraPDF. In casework this results in the draft, the PDF/A preview and the approval of the decision notice. Templates are managed by the Fachadministration.",[57,61,62,63,67,68,71],{},"Gotenberg and veraPDF are reachable only from Docgen. In the Compose package all three services run in internal Docker networks. Drupal reaches Docgen through ",[64,65,66],"code",{},"BEANTRAGT_DOCGEN_BASE_URL",", in the package ",[64,69,70],{},"http://docgen:3000",".",[52,73,75],{"id":74},"access","Access",[57,77,78,79,82,83,86,87,90,91,94],{},"Drupal authenticates with a token. In the package it is generated on first startup and passed as ",[64,80,81],{},"BEANTRAGT_DOCGEN_TOKEN",". Alternatively, Drupal reads the token from the file named in ",[64,84,85],{},"BEANTRAGT_DOCGEN_TOKEN_FILE",". Docgen accepts either a single token (",[64,88,89],{},"DOCGEN_TOKEN_FILE",") or a table of tenant identifiers and token hashes (",[64,92,93],{},"DOCGEN_TOKENS_FILE","). If both are set, Docgen does not start.",[96,97,98,111],"table",{},[99,100,101],"thead",{},[102,103,104,108],"tr",{},[105,106,107],"th",{},"Internal call",[105,109,110],{},"Purpose",[112,113,114,125,135,145],"tbody",{},[102,115,116,122],{},[117,118,119],"td",{},[64,120,121],{},"GET /health",[117,123,124],{},"Status of Docgen, Gotenberg and veraPDF, without token",[102,126,127,132],{},[117,128,129],{},[64,130,131],{},"POST /inspect",[117,133,134],{},"Template inspection for placeholders and errors",[102,136,137,142],{},[117,138,139],{},[64,140,141],{},"POST /render",[117,143,144],{},"Word draft generated from the data",[102,146,147,152],{},[117,148,149],{},[64,150,151],{},"POST /finalize",[117,153,154],{},"Conversion of the draft to PDF/A and validation",[52,156,158],{"id":157},"limits-and-capacity","Limits and capacity",[57,160,161,162,165,166,169,170,173,174,177,178,181],{},"A DOCX input is limited to 5 MiB by default (",[64,163,164],{},"DOCGEN_MAX_DOCX_BYTES","), a generated PDF to 20 MiB (",[64,167,168],{},"DOCGEN_MAX_PDF_BYTES","). The Compose package allows one conversion at a time (",[64,171,172],{},"DOCGEN_MAX_CONCURRENT_JOBS","). With a full queue, Docgen responds with HTTP 429 or 503 and a ",[64,175,176],{},"Retry-After"," header. Drupal waits 210 seconds for a response by default (",[64,179,180],{},"BEANTRAGT_DOCGEN_TIMEOUT_SECONDS",").",[52,183,185],{"id":184},"verification","Verification",[187,188,193],"pre",{"className":189,"code":190,"language":191,"meta":192,"style":192},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","docker compose exec drupal curl --fail --silent --show-error http://docgen:3000/health\n","sh","",[64,194,195],{"__ignoreMap":192},[196,197,200],"span",{"class":198,"line":199},"line",1,[196,201,190],{},[57,203,204,205,208],{},"The response contains ",[64,206,207],{},"status: ok",". A non-critical template is then used to create a draft decision notice, open it in the PDF/A preview and approve it with an authorised account.",[210,211,212],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":192,"searchDepth":214,"depth":215,"links":216},3,2,[217,218,219,220],{"id":54,"depth":215,"text":55},{"id":74,"depth":215,"text":75},{"id":157,"depth":215,"text":158},{"id":184,"depth":215,"text":185},"Docgen document service for decision notices from Word templates, PDF/A conversion, access and capacity.","md",null,{},{"title":226,"description":227},"Decision notices from Word templates (Docgen)","The Docgen document service creates decision notices from Word templates and converts them to PDF/A. Covers the setup, token access and capacity limits.","Hq-7kLAys0mExDkJ7Z2Tvx_ldDczkiGtSKSGxGPVSuA",[230,232],{"title":23,"path":24,"stem":25,"description":231,"children":-1},"Mailpit in the default setup, delivery through an existing SMTP server and redirection of all messages to a test mailbox.",{"title":31,"path":32,"stem":33,"description":233,"children":-1},"How staff accounts get access: membership in a municipality or department, roles for casework and form administration (Fachadministration), invitations.",1795601412415]