-
Notifications
You must be signed in to change notification settings - Fork 0
/
practise.html
119 lines (106 loc) · 6.64 KB
/
practise.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<html>
<head>
<title>
ABCD
</title>
</head>
<body>
<div id="htmlContentPdf">
<ul>
<li> <img src="radios1.jpg" /> Hardik </li>
<li style="list-style:circle;"> <img src="radios1.jpg" /> Milan </li>
</ul>
<br>
<img src="radios1.jpg" /> Hardik <br>
<img src="radios1.jpg" /> Milan
<br>
<img src="DSC_7765.JPG" style="height:50px;width:50px;max-width:50px;display: inline-block;" />
<br>
<br>
<h3 style="font-size:18px;">1) <p style="font-size:10px;"><span style="width:3px;max-width:3px;">
<img src="radios1.jpg" style="height:3px;width:3px;max-width:3px;"></span> _ Section 2 - Company Statistics</p></h3><br><br>
<div id="section_2 - company statistics_question0"><h4>1. Year Established</h4><br> 1111<br></div><div style="padding-top:10px;"></div>
<div id="section_2 - company statistics_question1"><h4>2. Business Ownership</h4><br><p style="font-size:10px;"><span style="width:3px;max-width:3px;">
<img src="rchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Private</p><p style="font-size:10px;"><span style="width:3px;max-width:3px;">
<img src="radios.jpg" style="height:3px;width:3px;max-width:3px;"></span> Public</p></div><div style="padding-top:10px;"></div>
<div id="section_2 - company statistics_question2"><h4>3. Business Type</h4><br>
<br>
<br>
<ul style="font-size:10px;display: inline-block;">
<li ><img src="cchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Private</li>
<li><img src="cchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Public</li>
<li><img src="checkboxs.jpg" style="height:3px;width:3px;max-width:3px;"></span> Joint Venture</li>
<li><img src="cchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Division</li>
<li><img src="checkboxs.jpg" style="height:3px;width:3px;max-width:3px;"></span> Other</li>
</ul>
<br>
<p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="cchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Private</p><br>
<p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="cchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Public</p><br>
<p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="checkboxs.jpg" style="height:3px;width:3px;max-width:3px;"></span> Joint Venture</p><br>
<p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="cchecks.jpg" style="height:3px;width:3px;max-width:3px;"></span> Division</p><br>
<p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="checkboxs.jpg" style="height:3px;width:3px;max-width:3px;"></span> Other</p><br>
</div><div style="padding-top:10px;"></div><div id="section_2 - company statistics_question3"><h4>4. Country of Ownership of the Company</h4><br> <br><br><br><br>___________________________________________________________________________________</div><div style="padding-top:10px;"></div><h3 style="font-size:18px;">2) <p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="radios1.jpg" style="height:3px;width:3px;max-width:3px;"></span> _ Section 1- Financial Information</p></h3><br><br><div id="section_1- financial information_question0"><h4>1. What is your turnover ?</h4><br><p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="radios.jpg" style="height:3px;width:3px;max-width:3px;"></span> 10000 - 20000</p><p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="radios.jpg" style="height:3px;width:3px;max-width:3px;"></span> 20001-4010</p><p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="radios.jpg" style="height:3px;width:3px;max-width:3px;"></span> 345679-986z87</p><p style="font-size:10px;"><span style="width:3px;max-width:3px;"><img src="radios.jpg" style="height:3px;width:3px;max-width:3px;"></span> ndcjkn -9</p></div><div style="padding-top:10px;"></div><ul style="list-style-image: url('radios1.jpg');"> <li>1</li><li>2</li><li>3</li><li>4</li></ul><ul type="circle"> <li>1a</li><li style="list-style-type: none;">2a</li><li style="list-style-type: circle;">3a</li><li style="list-style-type: square;">4a</li></ul>
<input type="button" onclick="downloadPDF();" value="submit" />
</div>
<script src="assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="jspdf.min.js"></script>
<script type="text/javascript" src="jspdf/plugins/acroform.js"></script>
<script type="text/javascript" src="jspdf/plugins/addhtml.js"></script>
<script type="text/javascript" src="jspdf/plugins/addimage.js"></script>
<script type="text/javascript" src="jspdf/plugins/annotations.js"></script>
<script type="text/javascript" src="jspdf/plugins/autoprint.js"></script>
<script type="text/javascript" src="jspdf/plugins/canvas.js"></script>
<script type="text/javascript" src="jspdf/plugins/cell.js"></script>
<script type="text/javascript" src="jspdf/plugins/context2d.js"></script>
<script type="text/javascript" src="jspdf/plugins/from_html.js"></script>
<script type="text/javascript" src="jspdf/plugins/javascript.js"></script>
<script type="text/javascript" src="jspdf/plugins/outline.js"></script>
<script type="text/javascript" src="jspdf/plugins/png_support.js"></script>
<script type="text/javascript" src="jspdf/plugins/prevent_scale_to_fit.js"></script>
<script type="text/javascript" src="jspdf/plugins/split_text_to_size.js"></script>
<script type="text/javascript" src="jspdf/plugins/standard_fonts_metrics.js"></script>
<script type="text/javascript" src="jspdf/plugins/svg.js"></script>
<script type="text/javascript" src="jspdf/plugins/total_pages.js"></script>
<script>
function downloadPDF() {
var pdf = new jsPDF('p', 'mm', 'a4')
// source can be HTML-formatted string, or a reference
// to an actual DOM element from which the text will be scraped.
, source = $('#htmlContentPdf')[0]
, specialElementHandlers = {
// element with id of "bypass" - jQuery style selector
'#bypassme': function(element, renderer){
// true = "handled elsewhere, bypass text extraction"
return true
}
}
console.log(pdf.getFontList());
pdf = pdf.setFont('times','normal');
margins = {
top: 20,
bottom: 15,
left: 20,
right:20,
width:190
};
// all coords and widths are in jsPDF instance's declared units
// 'inches' in this case
pdf.fromHTML(
source // HTML string or DOM elem ref.
, margins.left // x coord
, margins.top // y coord
, {
'width': margins.width // max width of content on PDF
, 'elementHandlers': specialElementHandlers
},
function (dispose) {
// dispose: object with X, Y of the last line add to the PDF
// this allow the insertion of new lines after html
pdf.save('abcd.pdf');
},
margins
)
}
</script>
</body>
</html>