function makeSinglePage() {
    const LEFT_ORIGIN = (PAGE_WIDTH / 2) - 4;
    const TOP_ORIGIN = 1.25;
    const OUTLINE_WIDTH = 0.02;

    for (let col = 0; col < 3; col++) {
      for (let row = 0; row < 3; row++) {
        let x = LEFT_ORIGIN + (3 * row);
        let y = TOP_ORIGIN + (3 * col);
        let image = document.querySelector(
          `.square:nth-child(${1 + row + (col * 3)})`
        );

        PDF.setFillColor(204, 204, 204);
        PDF.rect(
          x - OUTLINE_WIDTH,
          y - OUTLINE_WIDTH,
          2 + (2 * OUTLINE_WIDTH),
          2 + (2 * OUTLINE_WIDTH),
          "F"
        );

        PDF.addImage(image, "JPEG", x, y, 2, 2, "", "NONE");
      }
    }

    closePDF();
  }
/**
    * @desc Adds all images to PDF as a single page
  */
@desc Adds all images to PDF as a single page
@desc Adds all images to PDF as a single page
function makeSinglePage() {
    const LEFT_ORIGIN = (PAGE_WIDTH / 2) - 4;
    const TOP_ORIGIN = 1.25;
    const OUTLINE_WIDTH = 0.02;
    for (let col = 0; col < 3; col++) {
      for (let row = 0; row < 3; row++) {
        let x = LEFT_ORIGIN + (3 * row);
        let y = TOP_ORIGIN + (3 * col);
        let image = document.querySelector(
          `.square:nth-child(${1 + row + (col * 3)})`
        );
        PDF.setFillColor(204, 204, 204);
        PDF.rect(
          x - OUTLINE_WIDTH,
          y - OUTLINE_WIDTH,
          2 + (2 * OUTLINE_WIDTH),
          2 + (2 * OUTLINE_WIDTH),
          "F"
        );
        PDF.addImage(image, "JPEG", x, y, 2, 2, "", "NONE");
      }
    }
    closePDF();
  }
function makeSinglePage ( ) { const LEFT_ORIGIN = ( PAGE_WIDTH / 2 ) - 4 ; const TOP_ORIGIN = 1.25 ; const OUTLINE_WIDTH = 0.02 ; for ( let col = 0 ; col < 3 ; col ++ ) { for ( let row = 0 ; row < 3 ; row ++ ) { let x = LEFT_ORIGIN + ( 3 * row ) ; let y = TOP_ORIGIN + ( 3 * col ) ; let image = document . querySelector ( ` ${ 1 + row + ( col * 3 ) } ` ) ; PDF . setFillColor ( 204 , 204 , 204 ) ; PDF . rect ( x - OUTLINE_WIDTH , y - OUTLINE_WIDTH , 2 + ( 2 * OUTLINE_WIDTH ) , 2 + ( 2 * OUTLINE_WIDTH ) , "F" ) ; PDF . addImage ( image , "JPEG" , x , y , 2 , 2 , "" , "NONE" ) ; } } closePDF ( ) ; }
@desc Adds all images to PDF as a single page
@desc Adds all images to PDF as a single page