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({
|
||||
format: 'Letter',
|
||||
printBackground: true,
|
||||
preferCSSPageSize: false,
|
||||
preferCSSPageSize: true,
|
||||
displayHeaderFooter: false,
|
||||
margin: {
|
||||
top: '0.5in',
|
||||
right: '0.5in',
|
||||
bottom: '0.3in',
|
||||
left: '0.5in'
|
||||
top: '0',
|
||||
right: '0',
|
||||
bottom: '0',
|
||||
left: '0'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -593,13 +593,11 @@ function generateQuoteHTML(quote) {
|
|||
|
||||
.container {
|
||||
max-width: 8.5in;
|
||||
height: 11in;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.content-wrapper {
|
||||
padding: 40px;
|
||||
padding: 0.5in 0.5in 0.3in 0.5in;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.header {
|
||||
|
|
@ -750,7 +748,6 @@ function generateQuoteHTML(quote) {
|
|||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="content-wrapper">
|
||||
<div class="header">
|
||||
<div class="company-info">
|
||||
${logoHTML}
|
||||
|
|
@ -816,7 +813,6 @@ function generateQuoteHTML(quote) {
|
|||
</tbody>
|
||||
</table>
|
||||
${tbdNote}
|
||||
</div><!-- content-wrapper -->
|
||||
</div><!-- container -->
|
||||
</body>
|
||||
</html>`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue