ISO-8859-1
and UTF-8
.params
element
to the PDF document.paramKey
and the value paramValue
.paramKey
.charset
parameter of the document to charset
. The default charset is ISO-8859-1.headline
parameter of the document to headline
.headlineUrl
parameter of the document to headlineUrl
.baseUrl
parameter of the document to baseUrl
.filename
parameter of the document to filename
.pageSize
parameter of the document to width, height
.title
parameter of the element to title
.url
parameter of the element to url
. The title and the url together form a link.author
parameter of the element to author
.dateTime
parameter of the element to dateTime
.body
parameter of the element to body
. body
can be plain or html formatted text.<script type="text/javascript" src="http://doc2pdf.pdf24.org/js/api.js"></script>
/* * Create a document with parameters */ var doc = new PDF24Doc({ charset : "UTF-8", headline : "This ist the headline", headlineUrl : "http://www.pdf24.org", baseUrl : "http://www.pdf24.org", filename : "test", pageSize : "210x297" emailTo : "stefanz@pdf24.org", emailFrom : "stefanz@pdf24.org", emailSubject: "Here is your created PDF files", emailBody: "The created PDF file is attached to this email. Regards www.pdf24.org!" emailBodyType: "text" }); /* * Add an element without using PDF24Element */ doc.addElement({ title : "This is a title", url : "http://www.pdf24.org", author : "Stefan Ziegler", dateTime : "2010-04-15 8:00", body : "THis is the content of the element" }); /* * Create the PDF file */ doc.create();