i'm currently working on creating a pdf files using jsPDF in nativescript/typescript,
I need help on how to save generated pdf files in my internal storage.
I'm quite confusing either doc.save('filename.pdf') line of code did the saving and i try search the files but nothing founds.
Here is my code :
var doc = new jsPDF('p','pt');
var fontSize = 16;
var offsetY = 10;//4.797777777777778;
var lineHeight = 20;//6.49111111111111;
doc.setFontSize(fontSize);
doc.setFontType("bold");
doc.text(20, 10 + lineHeight * 0 + offsetY, 'My Details ');
doc.setFontSize(14);
doc.setFontType("bold");
doc.text(20, 30 + lineHeight * 1 + offsetY, 'Profiles');
doc.text(20, 30 + lineHeight * 2 + offsetY, '------------------------------');
doc.setFontType("normal");
doc.setFontSize(12);
doc.text(20, 30 + lineHeight * 3 + offsetY, ' First Name :');
doc.text(20, 30 + lineHeight * 4 + offsetY, 'Last Name:');
doc.save('fileName.pdf');
- How to perform email services automatically without using email app (install in phone) to manually email to recipients. For this i'm using nativescript-email.
Your help is much appreciated
Thanks in advance