   header_height = 40
   cols = fret_count + 1
   rows = (string_count - hidden_strings.length)
-  canvas_width = fretboard_width_with_gutter * cols + canvas_gutter * cols
-  canvas_height = header_height + fretboard_height_with_gutter * rows + canvas_gutter * rows
+  canvas_width = padded_fretboard_width * cols + canvas_gutter * cols
+  canvas_height = header_height + padded_fretboard_height * rows + canvas_gutter * rows
 
   canvas = new Canvas(canvas_width, canvas_height, pdf and 'pdf') unless pdf and canvas
   ctx = canvas.getContext('2d')

    ['Dim7', [0, 3, 6, 9]],
    ['6th', [0, 4, 7, 9]],
  ]
  for chord in chords
    chord_page chord[0], chord[1], chord[2], true
    ctx.addPage()
  filename = "Combined Fretboard Chords.pdf"
  fs.writeFile build_directory + filename, canvas.toBuffer()

chord_book()

    for fret_number in frets
      y = fret_number * fret_height + v_gutter
      ctx.beginPath()
      ctx.moveTo v_gutter-.5, y
      ctx.lineTo v_gutter+.5 + (string_count - 1) * string_spacing, y
      ctx.lineWidth = 3 if fret_number == 0
      ctx.stroke()
      ctx.lineWidth = 1
