diff --git a/server.js b/server.js index 79f38b9..f19aed0 100644 --- a/server.js +++ b/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) {
-
${logoHTML} @@ -816,7 +813,6 @@ function generateQuoteHTML(quote) { ${tbdNote} -
`;