dfgdf
This commit is contained in:
parent
fd8f5fa598
commit
d29a00ff63
20
server.js
20
server.js
|
|
@ -466,13 +466,13 @@ app.post('/api/quotes/:id/pdf', async (req, res) => {
|
||||||
const pdf = await page.pdf({
|
const pdf = await page.pdf({
|
||||||
format: 'Letter',
|
format: 'Letter',
|
||||||
printBackground: true,
|
printBackground: true,
|
||||||
preferCSSPageSize: false,
|
preferCSSPageSize: true,
|
||||||
displayHeaderFooter: false,
|
displayHeaderFooter: false,
|
||||||
margin: {
|
margin: {
|
||||||
top: '0.5in',
|
top: '0',
|
||||||
right: '0.5in',
|
right: '0',
|
||||||
bottom: '0.3in',
|
bottom: '0',
|
||||||
left: '0.5in'
|
left: '0'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -593,13 +593,11 @@ function generateQuoteHTML(quote) {
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 8.5in;
|
max-width: 8.5in;
|
||||||
|
height: 11in;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 0;
|
padding: 0.5in 0.5in 0.3in 0.5in;
|
||||||
}
|
box-sizing: border-box;
|
||||||
|
|
||||||
.content-wrapper {
|
|
||||||
padding: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|
@ -750,7 +748,6 @@ function generateQuoteHTML(quote) {
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content-wrapper">
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="company-info">
|
<div class="company-info">
|
||||||
${logoHTML}
|
${logoHTML}
|
||||||
|
|
@ -816,7 +813,6 @@ function generateQuoteHTML(quote) {
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
${tbdNote}
|
${tbdNote}
|
||||||
</div><!-- content-wrapper -->
|
|
||||||
</div><!-- container -->
|
</div><!-- container -->
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue