<!DOCTYPE HTML><HTML><Head> <title>Test</title> <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"> <Scriptsrc= "Https://code.jquery.com/jquery-git.js"></Script> <Scriptsrc= "Https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></Script> <Scriptsrc= "Https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js"></Script> </Head> <Body> <Pclass= "Pdf-wrapper" = "To-pdf">HTML content ...<H1>Chinese</H1>China, kanji, test: Contract template China China China China China China China
Country China China China China China China China China China China China China China China China China
Country China China China China China China China China China China China China China China China China China China
</br>
China China China China China China China China China China China China China China China China China China China
China, China China China China China China China China China China China China China China ..........<BR/>Chinese, Kanji, test: Contract Template ... .... .......<BR/>Billing interface ... ..... .......<BR/> <imgsrc= ' [email protected] '/> </P> <Scripttype= "Text/javascript"> varPDF= NewJspdf ('P','PT','A4'); Pdf.internal.scaleFactor= 1; varOptions={pagesplit:true }; //$ ('. Pdf-wrapper ')pdf.addhtml (document.body,options,function() {Pdf.save ('web1111.pdf'); }); </Script></Body></HTML>
A JS plugin that converts HTML to PDF on the browser side jspdf