O DABPE é o documento auxiliar impresso do BP-e (modelo 63). Use $bpe->renderDabpe() quando o host já tem o XML autorizado (bpeProc / procBPe) ou o bilhete em contingência e precisa do PDF para arquivo, download ou impressão térmica.A operação é local: não consulta a SEFAZ. O host persiste e entrega o PDF.
A geração do DABPE no SDK ainda não é production-ready: falta revisão visual contra o anexo gráfico do MOC e evidência de uso no host. Cobertura atual: Thermal80 e A4 (normal/homologação + contingência tpEmis=2). BP-e metropolitano não tem DABPE oficial.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SUOT Developers","description":"Documentação técnica da SUOT para SDKs fiscais e Developer Platform. Da ordem ao resultado.","colors":{"primary":"#FB0927","light":"#FF2741","dark":"#001145"},"logo":{"light":"https://mintcdn.com/cysar-2d1c3643/NaGnsg2R12tXDxVA/logo/light.png?fit=max\u0026auto=format\u0026n=NaGnsg2R12tXDxVA\u0026q=85\u0026s=8ec5c03474e4475b58f018d87dbb9969","dark":"https://mintcdn.com/cysar-2d1c3643/NaGnsg2R12tXDxVA/logo/dark.png?fit=max\u0026auto=format\u0026n=NaGnsg2R12tXDxVA\u0026q=85\u0026s=57fc8b2883f71b8645b426d674b3235c","href":"/"},"favicon":"https://mintcdn.com/cysar-2d1c3643/NaGnsg2R12tXDxVA/logo/favicon.png?fit=max\u0026auto=format\u0026n=NaGnsg2R12tXDxVA\u0026q=85\u0026s=600ac178ef3f1fd7ae26df54736ea38c","appearance":{"default":"system","strict":false},"background":{"color":{"light":"#F5F7FA","dark":"#0c0c0c"}},"navbar":{"links":[{"href":"https://developers.suot.dev","label":"Developer Portal"}],"primary":{"type":"button","label":"Começar integração","href":"https://developers.suot.dev"}},"footer":{"socials":{"github":"https://github.com/suothub","website":"https://suot.com.br"}},"search":{"prompt":"Buscar na documentação…"},"seo":{"metatags":{"og:locale":"pt_BR"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cysar-2d1c3643","hasAudioNarration":false,"actualSubdomain":"cysar-2d1c3643","customDomains":["docs.suot.dev"],"gitSource":{"type":"github","owner":"suothub","repo":"developer-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95c19cb76ddd761cc6712:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Fiscal SDK","count":59},{"language":"default","tag":"CT-e","count":18},{"language":"default","tag":"Consultas","count":14},{"language":"default","tag":"MDF-e","count":14},{"language":"default","tag":"BP-e","count":11},{"language":"default","tag":"Eventos","count":11},{"language":"default","tag":"Guias \u0026 Conceitos","count":10},{"language":"default","tag":"Início","count":7},{"language":"default","tag":"CT-e OS","count":6},{"language":"default","tag":"Visão geral","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--suot-midnight: #001145;--suot-signal: #fb0927;--suot-ink: #111827;--suot-slate: #475569;--suot-mist: #e8edf3;--suot-fog: #f5f7fa;--suot-error: #d21f2f;--suot-success: #0f9f68}#navbar img.nav-logo,#navbar .nav-logo{height:3.5rem;max-height:3.5rem;width:auto}"}],"page":{"pagePath":"fiscal/bpe/dabpe","slug":"/fiscal/bpe/dabpe","pageMetadata":{"title":"Gerar DABPE (PDF auxiliar)","sidebarTitle":"DABPE","description":"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe->renderDabpe() — operação local, sem SEFAZ.","href":"/fiscal/bpe/dabpe"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe->renderDabpe() — operação local, sem SEFAZ.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`o-quê-/-quando`,children:`O quê / quando`}),`\n`,_jsxs(_components.p,{children:[`O DABPE é o documento auxiliar impresso do BP-e (modelo 63). Use `,_jsx(_components.code,{children:`$bpe->renderDabpe()`}),` quando o host já tem o XML autorizado (`,_jsx(_components.code,{children:`bpeProc`}),` / `,_jsx(_components.code,{children:`procBPe`}),`) ou o bilhete em contingência e precisa do PDF para arquivo, download ou impressão térmica.`]}),`\n`,_jsxs(_components.p,{children:[`A operação é `,_jsx(_components.strong,{children:`local`}),`: não consulta a SEFAZ. O host persiste e entrega o PDF.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A geração do DABPE no SDK ainda `,_jsx(_components.strong,{children:`não`}),` é production-ready: falta revisão visual contra o anexo gráfico do MOC e evidência de uso no host. Cobertura atual: Thermal80 e A4 (normal/homologação + contingência `,_jsx(_components.code,{children:`tpEmis=2`}),`). BP-e metropolitano não tem DABPE oficial.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`exemplo-—-gerar-pdf`,children:`Exemplo — gerar PDF`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Suot\\\\Fiscal\\\\Bpe\\\\Dabpe\\\\Enum\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`DabpeTemplate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Suot\\\\Fiscal\\\\Bpe\\\\Dabpe\\\\Exception\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`DabpeXmlException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $bpe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`renderDabpe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromXml`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$procBpeXml`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`template`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`DabpeTemplate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`Thermal80`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`handle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`DabpeXmlException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Host: XML inválido, metropolitano ou QR inconsistente (modo estrito); corrigir origem e não gerar PDF`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isPdf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Host: persistir pdfBytes, accessKey, pageCount; expor download / enviar à impressora`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $pdf`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pdfBytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $chave`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`accessKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $xmlHash`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`metadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'xmlSha256'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`??`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`foreach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`warnings`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $warning`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Host: registrar warning.code / warning.message`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`2`,id:`result-renderdabperesult`,children:[`Result (`,_jsx(_components.code,{children:`RenderDabpeResult`}),`)`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Método`}),_jsx(_components.th,{children:`Uso`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`isPdf()`})}),_jsxs(_components.td,{children:[`Bytes começam com `,_jsx(_components.code,{children:`%PDF`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pdfBytes()`})}),_jsx(_components.td,{children:`Conteúdo do PDF`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`accessKey()`})}),_jsx(_components.td,{children:`Chave de 44 dígitos`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageCount()`})}),_jsx(_components.td,{children:`Páginas geradas`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`template()`})}),_jsxs(_components.td,{children:[`Template usado (`,_jsx(_components.code,{children:`thermal-80`}),` / `,_jsx(_components.code,{children:`a4`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`warnings()`})}),_jsx(_components.td,{children:`Avisos de layout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata()`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`modal`}),`, `,_jsx(_components.code,{children:`tpAmb`}),`, `,_jsx(_components.code,{children:`tpEmis`}),`, `,_jsx(_components.code,{children:`tpBPe`}),`, `,_jsx(_components.code,{children:`contingency`}),`, `,_jsx(_components.code,{children:`xmlSha256`}),`, …`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`extrair-campos-sem-pdf`,children:`Extrair campos (sem PDF)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Suot\\\\Fiscal\\\\Bpe\\\\Dabpe\\\\Exception\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`DabpeXmlException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $bpe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`renderDabpe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromXml`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$procBpeXml`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`extract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`DabpeXmlException`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Host: XML não parseável ou metropolitano; não indexar`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$chave`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`accessKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$campos`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fields`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// emitente, viagem, valores, passageiro, …`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$hash`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $extract`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`xmlSha256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`validar-se-dá-para-imprimir`,children:`Validar se dá para imprimir`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$report`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $bpe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`renderDabpe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromXml`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$procBpeXml`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`validatePrintable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$report`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isPrintable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Host: pode chamar ->handle() e persistir o PDF`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $report`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isPrintable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` foreach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$report`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`errors`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $issue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Host: corrigir issue.field / issue.code (SDK-XML-*, SDK-QR-*, SDK-DABPE-001, …)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`cobertura-atual`,children:`Cobertura atual`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Templates Thermal80 e A4`}),`\n`,_jsxs(_components.li,{children:[`Homologação (`,_jsx(_components.code,{children:`tpAmb=2`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Contingência offline (`,_jsx(_components.code,{children:`tpEmis=2`}),`, QR com `,_jsx(_components.code,{children:`sign`}),`, banners)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`extract()`}),` / `,_jsx(_components.code,{children:`validatePrintable()`})]}),`\n`,_jsxs(_components.li,{children:[`Recusa de BP-e metropolitano (`,_jsx(_components.code,{children:`BPeTM`}),` / `,_jsx(_components.code,{children:`tpBPe=4`}),` → `,_jsx(_components.code,{children:`SDK-DABPE-001`}),`)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Fora deste corte: térmico 58 mm, PDF417, assinatura XML na geração.`}),`\n`,_jsx(Heading,{level:`2`,id:`próximos-passos`,children:`Próximos passos`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Emitir BP-e: `,_jsx(_components.a,{href:`/fiscal/bpe/emissao`,children:`Emissão`})]}),`\n`,_jsxs(_components.li,{children:[`Consultar por chave: `,_jsx(_components.a,{href:`/fiscal/bpe/consultas/por-chave`,children:`Por chave`})]}),`\n`,_jsxs(_components.li,{children:[`Jornada: `,_jsx(_components.a,{href:`/fiscal/bpe`,children:`Visão geral BP-e`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Gerar DABPE (PDF auxiliar)","sidebarTitle":"DABPE","description":"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe->renderDabpe() — operação local, sem SEFAZ.","href":"/fiscal/bpe/dabpe"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"O quê / quando","slug":"o-quê-/-quando","depth":2,"children":[]},{"title":"Exemplo — gerar PDF","slug":"exemplo-—-gerar-pdf","depth":2,"children":[]},{"title":"Result (RenderDabpeResult)","slug":"result-renderdabperesult","depth":2,"children":[]},{"title":"Extrair campos (sem PDF)","slug":"extrair-campos-sem-pdf","depth":2,"children":[]},{"title":"Validar se dá para imprimir","slug":"validar-se-dá-para-imprimir","depth":2,"children":[]},{"title":"Cobertura atual","slug":"cobertura-atual","depth":2,"children":[]},{"title":"Próximos passos","slug":"próximos-passos","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cysar-2d1c3643","siteName":"SUOT Developers","title":"Gerar DABPE (PDF auxiliar) - SUOT Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-18T18:10:50.476Z","originalFileLocation":"fiscal/bpe/dabpe.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe-\u0026gt;renderDabpe() — operação local, sem SEFAZ.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SUOT Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Gerar DABPE (PDF auxiliar) - SUOT Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe-\u0026gt;renderDabpe() — operação local, sem SEFAZ.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SUOT Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.suot.dev/fiscal/bpe/dabpe\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cysar-2d1c3643.mintlify.site/_mintlify/api/og/v2?division=BP-e\u0026amp;title=Gerar+DABPE+%28PDF+auxiliar%29\u0026amp;description=Gere+o+DABPE+em+PDF+a+partir+do+XML+do+BP-e+ou+bpeProc+com+%24bpe-%3ErenderDabpe%28%29+%E2%80%94+opera%C3%A7%C3%A3o+local%2C+sem+SEFAZ.\u0026amp;theme=092dbeb471abad1215f4a1f4\u0026amp;signature=e59c0293aeb7b4a30298bc65871d9a7e784c0f40e9cf0a3c15568fb0d1eaa5b7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Gerar DABPE (PDF auxiliar) - SUOT Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe-\u0026gt;renderDabpe() — operação local, sem SEFAZ.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cysar-2d1c3643.mintlify.site/_mintlify/api/og/v2?division=BP-e\u0026amp;title=Gerar+DABPE+%28PDF+auxiliar%29\u0026amp;description=Gere+o+DABPE+em+PDF+a+partir+do+XML+do+BP-e+ou+bpeProc+com+%24bpe-%3ErenderDabpe%28%29+%E2%80%94+opera%C3%A7%C3%A3o+local%2C+sem+SEFAZ.\u0026amp;theme=092dbeb471abad1215f4a1f4\u0026amp;signature=e59c0293aeb7b4a30298bc65871d9a7e784c0f40e9cf0a3c15568fb0d1eaa5b7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cysar-2d1c3643/s6hVf3EOJbdwT70f/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SUOT Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FB0927\">\u003cmeta data-mint-head name=\"og:locale\" content=\"pt_BR\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.suot.dev/fiscal/bpe/dabpe\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fiscal/bpe/dabpe.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.suot.dev/#organization\",\"name\":\"SUOT Developers\",\"url\":\"https://docs.suot.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cysar-2d1c3643/NaGnsg2R12tXDxVA/logo/light.png?fit=max\u0026auto=format\u0026n=NaGnsg2R12tXDxVA\u0026q=85\u0026s=8ec5c03474e4475b58f018d87dbb9969\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.suot.dev#website\",\"name\":\"SUOT Developers\",\"url\":\"https://docs.suot.dev\",\"publisher\":{\"@id\":\"https://docs.suot.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.suot.dev/fiscal/bpe/dabpe#webpage\",\"url\":\"https://docs.suot.dev/fiscal/bpe/dabpe\",\"name\":\"Gerar DABPE (PDF auxiliar)\",\"description\":\"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe->renderDabpe() — operação local, sem SEFAZ.\",\"dateModified\":\"2026-07-18T18:10:50.476Z\",\"isPartOf\":{\"@id\":\"https://docs.suot.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.suot.dev/fiscal/bpe/dabpe#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.suot.dev/fiscal/bpe/dabpe#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"BP-e\",\"item\":\"https://docs.suot.dev/fiscal/bpe/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gerar DABPE (PDF auxiliar)\",\"item\":\"https://docs.suot.dev/fiscal/bpe/dabpe\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.suot.dev/fiscal/bpe/dabpe#article\",\"headline\":\"Gerar DABPE (PDF auxiliar)\",\"name\":\"Gerar DABPE (PDF auxiliar)\",\"description\":\"Gere o DABPE em PDF a partir do XML do BP-e ou bpeProc com $bpe->renderDabpe() — operação local, sem SEFAZ.\",\"url\":\"https://docs.suot.dev/fiscal/bpe/dabpe\",\"mainEntityOfPage\":{\"@id\":\"https://docs.suot.dev/fiscal/bpe/dabpe#webpage\"},\"dateModified\":\"2026-07-18T18:10:50.476Z\",\"publisher\":{\"@id\":\"https://docs.suot.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.suot.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SUOT Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SUOT Developers","nav":{"global":null,"tabs":[{"tab":"Início","pages":[{"title":"Início","href":""}]},{"tab":"Fiscal SDK","groups":[{"group":"Visão geral","pages":[{"title":"SUOT Fiscal SDK","sidebarTitle":"Visão geral","href":"/fiscal/visao-geral"},{"title":"Avaliar o SDK sem conta","sidebarTitle":"Avaliar","href":"/fiscal/avaliar"},{"title":"API pública do Fiscal SDK","sidebarTitle":"API pública","href":"/fiscal/api-publica"},{"title":"Instalar o Fiscal SDK","sidebarTitle":"Instalação","href":"/fiscal/instalacao"},{"title":"Configurar o client Cte","sidebarTitle":"Configuração","href":"/fiscal/configuracao"}]},{"group":"CT-e","pages":[{"title":"CT-e — jornada do conhecimento","sidebarTitle":"Visão geral","href":"/fiscal/cte/index"},{"title":"Validar dados antes de persistir","sidebarTitle":"Validação","href":"/fiscal/cte/validacao"},{"title":"Emitir CT-e","sidebarTitle":"Emissão","href":"/fiscal/cte/emissao"},{"title":"Ler o resultado da emissão","sidebarTitle":"Resultados","href":"/fiscal/cte/resultados"},{"title":"Contingência EPEC + SVC","sidebarTitle":"Contingência","href":"/fiscal/cte/contingencia"},{"title":"Gerar DACTE (PDF auxiliar)","sidebarTitle":"DACTE","href":"/fiscal/cte/dacte"},{"group":"CT-e Simplificado","pages":[{"title":"CT-e Simplificado","sidebarTitle":"Simplificado","href":"/fiscal/cte/simplificado/index"},{"title":"Emitir CT-e Simplificado","sidebarTitle":"Emissão","href":"/fiscal/cte/simplificado/emissao"}]},{"group":"Consultas","pages":[{"title":"Consultar status do serviço","sidebarTitle":"Status do serviço","href":"/fiscal/cte/consultas/status-servico"},{"title":"Consultar CT-e por chave","sidebarTitle":"Por chave","href":"/fiscal/cte/consultas/por-chave"},{"title":"Consultar protocolo de autorização","sidebarTitle":"Protocolo","href":"/fiscal/cte/consultas/protocolo"},{"title":"Baixar procCTe","sidebarTitle":"Download proc","href":"/fiscal/cte/consultas/download-proc"},{"title":"Distribuição DF-e de CT-e","sidebarTitle":"Distribuição DF-e","href":"/fiscal/cte/consultas/distribuicao-dfe"}]},{"group":"Eventos","pages":[{"title":"Cancelar CT-e","sidebarTitle":"Cancelamento","href":"/fiscal/cte/eventos/cancelamento"},{"title":"Carta de correção (CC-e)","sidebarTitle":"Carta de correção","href":"/fiscal/cte/eventos/carta-correcao"},{"title":"Comprovante de entrega","sidebarTitle":"Comprovante de entrega","href":"/fiscal/cte/eventos/comprovante-entrega"},{"title":"Insucesso na entrega","sidebarTitle":"Insucesso na entrega","href":"/fiscal/cte/eventos/insucesso-entrega"},{"title":"Prestação em desacordo","sidebarTitle":"Prestação em desacordo","href":"/fiscal/cte/eventos/prestacao-desacordo"}]}]},{"group":"CT-e OS","pages":[{"title":"CT-e OS — jornada do conhecimento","sidebarTitle":"Visão geral","href":"/fiscal/cte-os/index"},{"title":"Emitir CT-e OS","sidebarTitle":"Emissão","href":"/fiscal/cte-os/emissao"},{"title":"Ler o resultado da emissão CT-e OS","sidebarTitle":"Resultados","href":"/fiscal/cte-os/resultados"},{"group":"Consultas","pages":[{"title":"Consultar status do serviço CT-e OS","sidebarTitle":"Status do serviço","href":"/fiscal/cte-os/consultas/status-servico"},{"title":"Consultar CT-e OS por chave","sidebarTitle":"Por chave","href":"/fiscal/cte-os/consultas/por-chave"}]},{"group":"Eventos","pages":[{"title":"Cancelar CT-e OS","sidebarTitle":"Cancelamento","href":"/fiscal/cte-os/eventos/cancelamento"}]}]},{"group":"BP-e","pages":[{"title":"BP-e — jornada do bilhete","sidebarTitle":"Visão geral","href":"/fiscal/bpe/index"},{"title":"Emitir BP-e","sidebarTitle":"Emissão","description":"Emita BP-e modelo 63 (passagem rodoviária) com $bpe->issue()…->handle().","href":"/fiscal/bpe/emissao"},{"title":"Gerar DABPE (PDF auxiliar)","sidebarTitle":"DABPE","href":"/fiscal/bpe/dabpe"},{"title":"Ler o resultado da emissão BP-e","sidebarTitle":"Resultados","description":"IssueBpeResult: isAuthorized, isRejected, failure, retryPolicy e campos que o host deve persistir.","href":"/fiscal/bpe/resultados"},{"group":"Consultas","pages":[{"title":"Consultar status do serviço BP-e","sidebarTitle":"Status do serviço","href":"/fiscal/bpe/consultas/status-servico"},{"title":"Consultar BP-e por chave","sidebarTitle":"Por chave","href":"/fiscal/bpe/consultas/por-chave"}]},{"group":"Eventos","pages":[{"title":"Cancelar BP-e","sidebarTitle":"Cancelamento","href":"/fiscal/bpe/eventos/cancelamento"}]},{"group":"BP-e TM","pages":[{"title":"BP-e TM — transporte metropolitano","sidebarTitle":"Visão geral TM","href":"/fiscal/bpe/tm/index"},{"title":"Emitir BP-e TM","sidebarTitle":"Emissão TM","href":"/fiscal/bpe/tm/emissao"}]},{"group":"BP-e TA","pages":[{"title":"BP-e TA — transporte aéreo","sidebarTitle":"Visão geral TA","href":"/fiscal/bpe/ta/index"},{"title":"Emitir BP-e TA","sidebarTitle":"Emissão TA","href":"/fiscal/bpe/ta/emissao"}]}]},{"group":"MDF-e","pages":[{"title":"MDF-e — jornada do conhecimento","sidebarTitle":"Visão geral","href":"/fiscal/mdfe/index"},{"title":"Emitir MDF-e","sidebarTitle":"Emissão","href":"/fiscal/mdfe/emissao"},{"title":"Ler o resultado da emissão MDF-e","sidebarTitle":"Resultados","href":"/fiscal/mdfe/resultados"},{"title":"Emitir MDF-e em contingência","sidebarTitle":"Contingência","href":"/fiscal/mdfe/contingencia"},{"title":"Gerar DAMDFE (PDF auxiliar)","sidebarTitle":"DAMDFE","href":"/fiscal/mdfe/damdfe"},{"group":"Consultas","pages":[{"title":"Consultar status do serviço MDF-e","sidebarTitle":"Status do serviço","href":"/fiscal/mdfe/consultas/status-servico"},{"title":"Consultar MDF-e por chave","sidebarTitle":"Por chave","href":"/fiscal/mdfe/consultas/por-chave"},{"title":"Consultar MDF-e não encerrados","sidebarTitle":"Não encerrados","href":"/fiscal/mdfe/consultas/nao-encerrados"},{"title":"Obter procMDFe","sidebarTitle":"Download procMDFe","href":"/fiscal/mdfe/consultas/download-proc"},{"title":"Distribuir DF-e de MDF-e","sidebarTitle":"Distribuição DF-e","href":"/fiscal/mdfe/consultas/distribuicao-dfe"}]},{"group":"Eventos","pages":[{"title":"Cancelar MDF-e","sidebarTitle":"Cancelamento","href":"/fiscal/mdfe/eventos/cancelamento"},{"title":"Encerrar MDF-e","sidebarTitle":"Encerramento","href":"/fiscal/mdfe/eventos/encerramento"},{"title":"Incluir condutor no MDF-e","sidebarTitle":"Inclusão de condutor","href":"/fiscal/mdfe/eventos/inclusao-condutor"},{"title":"Incluir DF-e no MDF-e","sidebarTitle":"Inclusão de DF-e","href":"/fiscal/mdfe/eventos/inclusao-dfe"}]}]},{"group":"Laravel","pages":[{"title":"Laravel Bridge","sidebarTitle":"Laravel Bridge","href":"/fiscal/laravel-bridge"},{"title":"Configuração do Laravel Bridge — SUOT Fiscal SDK","sidebarTitle":"Config Laravel","href":"/fiscal/laravel-configuracao"}]},{"group":"Resultados e erros","pages":[{"title":"Actionable Result (CT-e)","sidebarTitle":"Resultados","href":"/fiscal/resultados"},{"title":"Rejeições de CT-e","sidebarTitle":"Rejeições","href":"/fiscal/rejeicoes"},{"title":"Retry seguro (CT-e)","sidebarTitle":"Retry","href":"/fiscal/retry"}]}]},{"tab":"Guias \u0026 Conceitos","pages":[{"title":"Guias \u0026 Conceitos","href":"/guias/homologacao"}]}]},"basePath":"","title":"Gerar DABPE (PDF auxiliar) - SUOT Developers","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":[],"chunks":[]}