Telephone number formatting
Alex,
Yes exactly.
For example here is a solution to get generated pdf onto the page:
1 Add HTML component, set dimmentions for it "auto" and "auto".
2 Fill component HTML with following code:
pre
<iframe width="100%" height="500px" id="pdfOutContainer"</iframe
/pre
3 Add button to the page and add JS click event handler with following code:
pre
console.log("generating pdf...");
var doc = new jsPDF();
doc.text(20, 20, 'HELLO!');
doc.setFont("courier");
doc.setFontType("normal");
doc.text(20, 30, 'This is a PDF document generated using JSPDF.');
doc.text(20, 50, 'YES, Inside of PhoneGap!');
var pdfUriString = doc.output('datauristring');
console.log(pdfUriString);
var pdfOutContainer = jQuery("#pdfOutContainer");
pdfOutContainer.attr("src", pdfUriString);
/pre
That's all. After you clicked on the button you will get your PDF in the browser if it supports.
Regards.