-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME
68 lines (55 loc) · 3.75 KB
/
README
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
QRToad: Is a ColdFusion Interface for the itext library
http://itextpdf.com/download.php
To install:
1. Download the latest release .zip from https://github.com/itext/itextpdf/releases
2. Copy the itext jar (itext5-itextpdf-5.5.12.jar) (and optionally the itext extras jar)
file to your ColdFusion server class path. I put mine in Coldfusion9/lib/. On Lucee
consider using an Application.cfc specific directory via this.javaSettings
3. Restart the ColdFusion Service. On Lucee this is not required if this.javaSettings contains
'reloadOnChange'
To use:
At it's simplest you only need to create the component and pass one parameter to it.
<cfset qr = createObject("component","com.timcunningham.QRToad.QRCode")>
<cfcontent reset="true" variable="#qr.getQRCode("http://cfmumbojumbo.com")#"
type="image/png">
This will create a QR code that is black and white 150 x 150 pixels that takes you to
cfmumbojumbo.com
Also see the getQRtest.html example that shows how you can use this code in relation
to an HTML img src=
Thanks,
Tim Cunningham
Acknowledgements: Thanks to Matt Abbott, CGCFUG awesome user group manager, who
gave me the idea to use iText and some working sample code, which I greatfully
"borrowed." Remember kids, if you steal from TimmyC, you stole twice!
**************************************************************************************
******************************* CHANGE LOG ***********************************
**************************************************************************************
09/05/2018 - implement correction level. pass CorrectionLevel=L,M,Q,orH
04/04/2012- change arguments that refered to "variableName" to "any" so that code
will work with Railo 3.3
**************************************************************************************
**************************************************************************************
********* Licensed under the MIT – No Bob Saget Open Source License ******************
***************** Copyright (c) 2012 Timothy Cunningham ****************************
**************************************************************************************
Permission is hereby granted, free of charge, to any person (except for Bob Saget)
obtaining a copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions: The above copyright notice and
this permission notice shall be included in all copies or substantial portions
of the Software. Under no circumstances shall Bob Saget be granted use of this
software, source code, documentation or other related material. Persons dealing in
the Software agree not to knowingly distribute these materials or any derivative
works to Bob Saget.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**************************************************************************************
**************************************************************************************
**************************************************************************************
**************************************************************************************