Skip to content

Commit

Permalink
also print empty space in grids to pdf, #304
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Sep 20, 2024
1 parent f1bba77 commit f94a4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/service/printService.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ function addGridToPdf(doc, gridData, options, metadata) {
);
let registerHeight = options.showRegister && options.pages > 1 ? 10 : 0;
let footerHeight = hasARASAACImages ? 2 * pdfOptions.footerHeight : pdfOptions.footerHeight;
let elementTotalWidth = (DOC_WIDTH - 2 * pdfOptions.docPadding) / gridData.getWidth();
let elementTotalWidth = (DOC_WIDTH - 2 * pdfOptions.docPadding) / gridData.getWidthWithBounds();
let elementTotalHeight =
(DOC_HEIGHT - 2 * pdfOptions.docPadding - footerHeight - registerHeight) / gridData.getHeight();
(DOC_HEIGHT - 2 * pdfOptions.docPadding - footerHeight - registerHeight) / gridData.getHeightWithBounds();
if (footerHeight > 0) {
let yBaseFooter = DOC_HEIGHT - pdfOptions.docPadding - registerHeight;
let fontSizePt = (pdfOptions.footerHeight * 0.4) / 0.352778;
Expand Down

0 comments on commit f94a4e4

Please sign in to comment.