src/components/form/PDFFunctions.js
/**
  * Checks to see if the strings goes over the text field
  *
  * @param  {jsPDF}    doc         the pdf document
  * @param  {Number}   offset      the cordinate to start place the string
  * @param  {Number}   page_width  fixed size of the textfield area, usually the same are box_height
  * @return                        void
  *
  */
Checks to see if the strings goes over the text field
@param  {jsPDF}    doc         the pdf document
@param  {Number}   offset      the cordinate to start place the string
@param  {Number}   page_width  fixed size of the textfield area, usually the same are box_height
@return                        void
Checks to see if the strings goes over the text field @param { jsPDF } doc the pdf document @param { Number } offset the cordinate to start place the string @param { Number } page_width fixed size of the textfield area usually the same are box_height @return void
function add_jounrnal_page(doc, offset, page_width)
  {
    if(journal.EPIC_JOURNAL!==''){
      journal.MAX_PARAGRAPH_LENGTH = 66
      doc.addPage();
      add_page_number(doc);
      createTitle(doc, offset + (page_width / 3 * 0), 20, "JOURNAL");
      createTextBox(doc, offset + (page_width / 3 * 0), 30, (page.PAGE_WIDTH / 3) + 360, 750, "");
      createJournalParagraph(doc, journal.EPIC_JOURNAL, offset + 5, 40, 570, '', 10 );
      epic_story(journal.EPIC_JOURNAL.length, doc, offset, page_width)
    }
  }
function add_jounrnal_page ( doc , offset , page_width ) { if ( journal . EPIC_JOURNAL !== '' ) { journal . MAX_PARAGRAPH_LENGTH = 66 doc . addPage ( ) ; add_page_number ( doc ) ; createTitle ( doc , offset + ( page_width / 3 * 0 ) , 20 , "JOURNAL" ) ; createTextBox ( doc , offset + ( page_width / 3 * 0 ) , 30 , ( page . PAGE_WIDTH / 3 ) + 360 , 750 , "" ) ; createJournalParagraph ( doc , journal . EPIC_JOURNAL , offset + 5 , 40 , 570 , '' , 10 ) ; epic_story ( journal . EPIC_JOURNAL . length , doc , offset , page_width ) } }
Checks to see if the strings goes over the text field
 @param  {jsPDF}    doc         the pdf document
 @param  {Number}   offset      the cordinate to start place the string
 @param  {Number}   page_width  fixed size of the textfield area, usually the same are box_height
 @return                        void
Checks to see if the strings goes over the text field @param { jsPDF } doc the pdf document @param { Number } offset the cordinate to start place the string @param { Number } page_width fixed size of the textfield area usually the same are box_height @return void