In Feburary 2016 27,
Create your Javascript PDF variable. This variable has the functions needed to create and edit a PDF. To start your PDF creation function, use the following code:pdfdoc = new pdf$("", "Header", "Footer");
Set a font size. The font size can be set to any number. A typical document font size is 12-18. You may need to use different font sizes to come up with the best size for your PDF pages. The following code sets the font size to 18:pdfdoc.setFontSize(18);
Write some text to the PDF. You can continue to write text until the PDF file, and the PDF reader, sets page breaks for each page created. The following code adds a line of text:pdfdoc.addText('Create a PDF file in Javascript');
Save the file and display it to the reader. The following code creates a physical file and displays the document to your reader:pdfdoc.writeToFile('mypdf.pdf');
In Feburary 2016 27,