karlenigma
04/12/2018, 1:03 PMvar xmlStr = "<?xml version=\"1.0\"?>" +
"<!DOCTYPE pdf PUBLIC \"-//big.faceless.org//report\" \"report-1.1.dtd\">" +
"<pdf>" +
"<head>" +
"<style type=\"text/css\">" +
".itemid { cellmargin: 0 auto; font-weight: bold; font-family: Verdana, Geneva, sans-serif; line-height: 100%; text-align: center; align: center; font-size: 4.5mm; }" +
".description { cellmargin: 0 auto; font-family: Verdana, Geneva, sans-serif; font-size: 2.5mm; width: 100%; vertical-align: text-top; font-weight: normal; text-align: center; }" +
"barcode { width: 30mm; margin-left: 1mm; margin-top: 3mm; align: left; text-align: left; line-height: 25%; font-weight: normal; }" +
".warning { text-color: black; height: 3mm; width: 51mm; font-family: Verdana, Geneva, sans-serif; font-size: 2.75mm; font-weight: bold; text-align: center; }" +
"</style>" +
"<body width=\"51mm\" height=\"76mm\" padding-top=\"5mm\" padding-bottom=\"6mm\" padding-left=\"2mm\" padding-right=\"2mm\">" +
"<table table-layout=\"fixed\">" +
"<tbody>" +
"<tr><td><img src=\"file:{URL}label_logo.jpg\" dpi=\"300\"/></td></tr>" +
"<tr><td class=\"itemid\">" +
labeldescription +
"</td></tr>" +
"<tr><td class=\"description\">Manufacturers names, numbers and illustrations are used for reference purposes only</td></tr>" +
"<tr><td class=\"warning\">WARNING! SAFETY FIRST</td></tr>" +
"<tr><td class=\"description\">To prevent injury before replacing any part within an electrical appliance, the appliance must be fully unplugged and/or disconnected from the mains power supply. Repairs should only be undertaken by a suitably trained person.</td></tr>" +
"<tr><td class=\"warning\">WARNING! RISK OF SUFFOCATION</td></tr>" +
"<tr><td class=\"description\">To avoid danger of suffocation keep any bags or film away from babies and children</td></tr>\"" +
"<tr><td class=\"itemid\">REF : " +
itemid +
"</td></tr>" +
"<tr><td><barcode codetype=\"ean13\" bar-width=\"0.75\" bar-height=\"12mm\" height=\"15mm\" showtext=\"true\" value=" +
barcodenumber +
"\"/></td></tr>" +
"<tr><td><barcode codetype=\"code128\" bar-width=\"0.6\" bar-height=\"12mm\" height=\"15mm\" showtext=\"false\" value=" +
itemid +
"\"/></td></tr>" +
"</tbody>" +
"</table>" +
"</body>" +
"</pdf>";