PDF Export Report

This commit is contained in:
2026-06-10 17:21:29 -05:00
parent ba6019751f
commit 8959064080
3 changed files with 246 additions and 1 deletions

View File

@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; }
.container { max-width: 8.5in; margin: 0 auto; padding: 20px; }
.header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #333; }
.company-info { display: flex; align-items: flex-start; gap: 15px; }
.logo { width: 50px; height: 50px; }
.company-details h1 { font-size: 16px; font-weight: normal; margin-bottom: 2px; }
.company-details p { font-size: 14px; line-height: 1.4; }
.tagline { text-align: right; font-style: italic; font-size: 14px; margin-bottom: 20px; }
.document-type { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 10px; }
.report-meta { margin-bottom: 20px; }
.report-meta p { font-size: 13px; color: #555; }
.items-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; }
.items-table th { background-color: #f5f5f5; border: 1px solid #000; padding: 6px 8px; font-weight: bold; text-align: right; }
.items-table th:first-child { text-align: left; }
.items-table td { border: 1px solid #000; padding: 6px 8px; text-align: right; }
.items-table td:first-child { text-align: left; }
.items-table td.cell-bold { font-weight: bold; }
.items-table tr.section-header td { background-color: #f0f0f0; font-weight: bold; }
.items-table tr.summary-row td { font-weight: bold; border-top-width: 2px; }
tr { page-break-inside: avoid; }
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="company-info">
{{LOGO_HTML}}
<div class="company-details">
<h1>{{COMPANY_NAME}}</h1>
<p>{{COMPANY_ADDRESS}}</p>
</div>
</div>
<div>
<div class="tagline">
<em>{{SLOGAN}}</em>
</div>
</div>
</div>
<div class="document-type">{{REPORT_TITLE}}</div>
<div class="report-meta">
<p>{{REPORT_META}}</p>
</div>
<table class="items-table">
<thead>
{{TABLE_HEAD}}
</thead>
<tbody>
{{REPORT_BODY}}
</tbody>
</table>
<p style="text-align:right; font-size:11px; color:#888; margin-top:10px;">
Generated: {{GENERATED_DATE}}
</p>
</div>
</body>
</html>