Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
nssdbm3.dll | 2015-06-30 | 203.8 kB | |
nssutil3.dll | 2015-06-30 | 203.3 kB | |
plc4.dll | 2015-06-30 | 28.7 kB | |
plds4.dll | 2015-06-30 | 25.1 kB | |
sigwebtablet.p12 | 2015-06-30 | 2.5 kB | |
smime3.dll | 2015-06-30 | 216.1 kB | |
softokn3.dll | 2015-06-30 | 290.8 kB | |
sqlite3.dll | 2015-06-30 | 653.3 kB | |
ssl3.dll | 2015-06-30 | 549.4 kB | |
certutil.exe | 2015-06-30 | 195.6 kB | |
Fileserver.cer | 2015-06-30 | 957 Bytes | |
freebl3.dll | 2015-06-30 | 574.0 kB | |
Installcert.bat | 2015-06-30 | 734 Bytes | |
nspr4.dll | 2015-06-30 | 303.1 kB | |
nss3.dll | 2015-06-30 | 1.5 MB | |
nssckbi.dll | 2015-06-30 | 625.2 kB | |
Totals: 16 Items | 5.4 MB | 0 |
INSTALLING ---------------------------------------------- Unzip chromeDymo.zip to your desired install location & run install.bat and register.bat as administrator to set the server as a global startup in windows. DEMO ---------------------------------------------- See demo.html for a working example. (Using video spine label) USAGE ---------------------------------------------- Once the node server is running, you may print by simply POSTing your data to either http://tablet.sigwebtablet.com:8081/ OR https://tablet.sigwebtablet.com:8082/ depending on the schema of your web application. The POST may (but does not have to) contain up to 4 fields: thing - the xml to be printed printer - name of the DYMO printer to print to tray - printer tray to use copies - number of copies You may obtain a list of available printers by sending a GET request to the same address. The request returns a JSON object with one variable "printers" which contains a list of | separated printers. Example: $.get("https://tablet.sigwebtablet.com:8082/").done(function(resp){ var obj = JSON.parse(resp); var printerArray = obj.printers.split("|"); //alert(printerArray[0]); var label = dymo.label.framework.openLabelXml(dieCutLabelLayout); label.setObjectText("Text", 'Some words go here'); label.setObjectText("Text2", 'Other words here'); label.setObjectText("Text3", 'info0'); label.setObjectText("ItemCode", '1FF4EQ'); $.post("https://tablet.sigwebtablet.com:8082/", { thing: label.getLabelXml(), printer: printerArray[0], tray: '0', copies: '2' }) .done(function(resp){ //alert(Xml.serialize(labelDom)); }); }); ---------------------------------- Fonts: Presently it's easiest to change all fonts for the entire label, setting individual fonts for different objects is still a bit cumbersome. To change the entire label's font you can use the following method: $.get("https://tablet.sigwebtablet.com:8082/").done(function(resp){ var obj = JSON.parse(resp); var printerArray = obj.printers.split("|"); //alert(printerArray[0]); var label = dymo.label.framework.openLabelXml(dieCutLabelLayout); label.setObjectText("Text", 'Some words go here'); label.setObjectText("Text2", 'Other words here'); label.setObjectText("Text3", 'info0'); label.setObjectText("ItemCode", '1FF4EQ'); var labelDom = Xml.parse(label.getLabelXml()); //PARSE MODIFIED LABEL AS OBJECT var x = labelDom.getElementsByTagName('Font'); //LOAD ALL FONT TAGS IN XML for(var i = 0; i < x.length; i++) //LOOP THROUGH EACH TAG x[i].setAttribute("Family", "Courier New"); //SET DESIRED ATTRIBUTE $.post("https://tablet.sigwebtablet.com:8082/", { thing: Xml.serialize(labelDom), printer: printerArray[0], tray: '0', copies: '2' }) .done(function(resp){ //alert(Xml.serialize(labelDom)); }); });