Error al generar el PDF, se genera al final una hoja en blanco #4
This commit is contained in:
parent
1396c70d1f
commit
d707c2360f
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@uecko-presupuestador/server",
|
"name": "@uecko-presupuestador/server",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"author": "Rodax Software <dev@rodax-software.com>",
|
"author": "Rodax Software <dev@rodax-software.com>",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export const ReportQuotePresenter: IReportQuoteReporter = {
|
|||||||
|
|
||||||
await navigationPromise;
|
await navigationPromise;
|
||||||
const reportPDF = await report.pdfPage(page, {
|
const reportPDF = await report.pdfPage(page, {
|
||||||
format: "a4",
|
format: "A4",
|
||||||
margin: {
|
margin: {
|
||||||
bottom: "10mm",
|
bottom: "10mm",
|
||||||
left: "10mm",
|
left: "10mm",
|
||||||
|
|||||||
@ -6,19 +6,6 @@
|
|||||||
referrerpolicy="no-referrer" />
|
referrerpolicy="no-referrer" />
|
||||||
<title>Presupuesto #{{id}}</title>
|
<title>Presupuesto #{{id}}</title>
|
||||||
<style>
|
<style>
|
||||||
@page {
|
|
||||||
size: A4;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media print {
|
|
||||||
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
width: 210mm;
|
|
||||||
height: 297mm;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
color: #000;
|
color: #000;
|
||||||
@ -26,7 +13,10 @@
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {}
|
#header {
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#footer {}
|
#footer {}
|
||||||
|
|
||||||
@ -78,8 +68,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<main id="main">
|
<main id="main">
|
||||||
<section id="details">
|
<section id="details">
|
||||||
<table class="table-header">
|
<table class="table-header">
|
||||||
@ -149,17 +137,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
<section id="legal_terms">
|
<section id="legal_terms">
|
||||||
<p class="text-xs text-gray-500">{{quote.default_legal_terms}}</p>
|
<p class="text-xs text-gray-500">{{quote.default_legal_terms}}</p>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<footer id="footer" class="mt-4">
|
<footer id="footer" class="mt-4">
|
||||||
<aside><img src="https://uecko.com/assets/img/uecko-footer_logos.jpg" class="w-full" /></aside>
|
<aside><img src="https://uecko.com/assets/img/uecko-footer_logos.jpg" class="w-full" /></aside>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user