How can I add margins to a jsPDF document?
I creating a document through jsPDF without using the function "doc.fromHTML". I can define left margin for every text but I cannot do it for margin right so when the text is too large it take more width than the page. This is a snippet of my code. So basically I want to add margins for every page.
var doc = new jsPDF('p', 'pt', 'letter');
doc.text("2. OBSERVACIONES", 40, 500);
doc.setFontSize(10);
doc.setFontType('normal');
doc.text("{Análisis otras especies en número en XXX: Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°, Nombre+N°} {Observaciones otras especies en número}", 40, 520);
doc.save('newPDF');