Error al generar el PDF, se genera al final una hoja en blanco #4

This commit is contained in:
David Arranz 2025-02-18 16:22:00 +01:00
parent 1396c70d1f
commit d707c2360f
3 changed files with 6 additions and 23 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@uecko-presupuestador/server",
"private": true,
"version": "1.1.1",
"version": "1.1.2",
"author": "Rodax Software <dev@rodax-software.com>",
"main": "./src/index.ts",
"scripts": {

View File

@ -47,7 +47,7 @@ export const ReportQuotePresenter: IReportQuoteReporter = {
await navigationPromise;
const reportPDF = await report.pdfPage(page, {
format: "a4",
format: "A4",
margin: {
bottom: "10mm",
left: "10mm",

View File

@ -6,19 +6,6 @@
referrerpolicy="no-referrer" />
<title>Presupuesto #{{id}}</title>
<style>
@page {
size: A4;
}
@media print {
html,
body {
width: 210mm;
height: 297mm;
}
}
body {
font-family: Arial, Helvetica, sans-serif;
color: #000;
@ -26,7 +13,10 @@
line-height: 1.6;
}
#header {}
#header {
margin-bottom: 0;
padding-bottom: 0;
}
#footer {}
@ -78,8 +68,6 @@
</div>
</aside>
</header>
<main id="main">
<section id="details">
<table class="table-header">
@ -149,17 +137,12 @@
</tr>
</tbody>
</table>
</div>
</section>
<section id="legal_terms">
<p class="text-xs text-gray-500">{{quote.default_legal_terms}}</p>
</section>
</main>
<footer id="footer" class="mt-4">
<aside><img src="https://uecko.com/assets/img/uecko-footer_logos.jpg" class="w-full" /></aside>
</footer>