This repository has been archived by the owner on Oct 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
103 lines (95 loc) · 2.77 KB
/
index.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
<title>pdfsnag</title>
<link href='http://fonts.googleapis.com/css?family=Average' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono' rel='stylesheet' type='text/css'>
<style>
body {
font-family: sans-serif;
background-color: #602E00;
color: #BE9054;
padding: 20px 10% 10px;
font-size: 15px;
}
h3, h4 {
text-shadow: -1px 1px 1px #444;
font-family: 'Average', serif;
}
h3 {
font-size: 3.5em;
text-align: center;
}
h4 {
color: lightblue;
font-size: 1.2em;
}
pre {
font-family: 'Ubuntu Mono', monospace;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0px 16px 16px -16px #000;
color: #000;
border: none;
}
form {
background-color: rgba(255,255,255,0.1);
padding: 30px;
color: #fff;
font-family: 'Average', serif;
border-radius: 4px;
}
input, textarea {
border: none;
padding: 10px;
margin: 5px;
border-radius: 5px;
box-shadow: 0px 16px 16px -16px #000;
}
textarea {
box-sizing: border-box;
width: 100%;
-moz-box-sizing: border-box;
}
button {
font-family: 'Average', serif;
border: none;
padding: 15px;
margin-top: -15px;
border-radius: 10px;
float: right;
box-shadow: 0px 0px 4px #000;
font-weight: bold;
font-size: 20px;
background-color: lightblue;
transition: all .2s ease-in;
cursor: pointer;
}
button:hover {
background-color: white;
}
</style>
<h3>pdfsnag - streaming pdf generator</h3>
<a href="http://github.com/applieddataconsultants/pdfsnag"><img style="position: absolute; top: 0; right: 0; border: 0;" src="forkme.png" alt="Fork me on GitHub"></a>
<h4>Base Request Params (GET and POST)</h4>
<pre>
<b>url</b>: url to generate pdf from
<b>html</b>: html to generate pdf from
<b>name</b>: name of generated pdf (default: output.pdf)
</pre>
<h4>Additional wkhtmltopdf Request Params Supported</h4>
<p><i>%OPTIONS%</i></p>
<p><a href='http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf_0.10.0_rc2-doc.html' style='color: white'>Read about the options</a></p>
<h4>Example: Sample GET Requests</h4>
<pre>
<a href='/?url=google.com'>?url=google.com</a>
<a href='/?html=<h1>Hi Mom&name=to_mom'>?html=<h1>Hi mom&to_mom</a>
<a href='/?url=google.com&zoom=3&orientation=Landscape&grayscale=&encoding=UTF-8&page-height=17in&page-width=11in'>?url=google.com&zoom=3&orientation=Landscape&grayscale=&encoding=UTF-8&page-height=17in&page-width=11in</a>
</pre>
<h4>Example: POST Example/Form</h4>
<form method='post'>
<p>
Name: <input name=name value=mygoogles>
Url: <input type=url name=url value=http://google.com>
<button type='submit'>Let It Rip</button>
</p>
<p>Html:<br> <textarea name=html rows=15></textarea></p>
</form>