From 981e0c0def49984f35fcf1724beba38446899615 Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Tue, 11 Jan 2022 11:50:20 -0300 Subject: [PATCH] Small fix PDF export --- .../Settings/Export/Export.helpers.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/Settings/Export/Export.helpers.js b/src/components/Settings/Export/Export.helpers.js index b09994c84..683105291 100644 --- a/src/components/Settings/Export/Export.helpers.js +++ b/src/components/Settings/Export/Export.helpers.js @@ -492,19 +492,20 @@ const addTileToGrid = async ( width: '100' }; - if (7 === columns || columns === 8) { - imageData.width = '90'; - } else if (9 === columns || columns === 10 || rows === 5) { - imageData.width = '70'; - } else if (11 === columns || columns === 12 || rows >= 6) { - imageData.width = '59'; - } - const labelData = { text: label, alignment: 'center' }; + if (11 === columns || columns === 12 || rows >= 6) { + imageData.width = '59'; + labelData.fontSize = 9; + } else if (9 === columns || columns === 10 || rows === 5) { + imageData.width = '70'; + } else if (7 === columns || columns === 8) { + imageData.width = '90'; + } + const displaySettings = getDisplaySettings(); let value1, value2 = {}; @@ -745,6 +746,7 @@ export async function pdfExportAdapter(boards = [], intl) { const docDefinition = { pageSize: 'A4', pageOrientation: 'landscape', + pageMargins: [20, 20], content: [] }; const lastBoardIndex = boards.length - 1;