Skip to content

Commit

Permalink
More accurate A4 size
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Jun 18, 2024
1 parent a50c2b5 commit 2d3fbc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ var dpi = 200;
var minDpi = 100;
var maxDpi = 320;
var dpiStep = 20;
function a4width() {return 8 * dpi;}
function a4height() {return 11 * dpi;}
var border = 0.2;
function a4width() {return (8.3 - 2 * border) * dpi;}
function a4height() {return (11.7 - 2 * border) * dpi;}

function setDPI(container) {
container.value = "DPI: " + dpi.toString();
Expand Down

0 comments on commit 2d3fbc0

Please sign in to comment.