i want the pdf not to be a4 var xmlStr = "<?xml...
# ask-stanley-ai
n
i want the pdf not to be a4 var xmlStr = "<?xml version=\"1.0\" encoding=\"ISO-8859-6\" standalone=\"yes\"?>\n" + "<!DOCTYPE pdf PUBLIC \"-<//big.faceless.org//report>\" \"report-1.1.dtd\">\n" + "<pdf lang=\"ru\" xml:lang=\"ru\" size=\"4in 6in\" margin=\"0.25in\">"+ "<head>\n"; xmlStr += "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>"; xmlStr += "<link name=\"Cyberbit\" type=\"font\" subtype=\"opentype\" " + "src=\"NetSuiteFonts/Cyberbit.ttf\" " + "src-bold=\"NetSuiteFonts/Cyberbit.ttf\" " + "bytes=\"2\"/>\n" + "<link name=\"Amiri-font\" type=\"font\" subtype=\"opentype\" " + "src=\"https://system.eu2.netsuite.com/core/media/media.nl?id=6855&amp;c=xxx8839&amp;h=7cada88647a1f0c07899&amp;_xt=.ttf\" " + "src-bold=\"https://xxx8839-sb1.app.netsuite.com/core/media/media.nl?id=7532&amp;c=xxx8839&amp;h=97e9854d5b5e8f891e11&amp;_xt=.ttf\" " + "bytes=\"2\"/>\n" + "<style type=\"text/css\">table {font-family: Amiri-font, sans-serif ;\n font-size: 9pt; \n table-layout: fixed;</style>"; xmlStr += "<macrolist>" + "<macro id=\"myheader\">" + "<hr width=\"100%\"/>"+ "</macro>" + "<macro id=\"myfooter\">" + "</macro>" + "</macrolist>" + "</head>\n" + "<body font-family=\"cyberbit\" font-size=\"16\" color=\"#00004D\" padding=\"0.5in 0.5in 0.5in 0.5in\" header=\"myheader\" header-height=\"15%\" footer=\"myfooter\" footer-height=\"0px\">\n"; xmlStr += "<table style=\"height:20%; width:100%;margin-bottom:10px;\">"+ // "<tr ><td align=\"center\" ><barcode width=\"120px\" height=\"100px\" codetype=\"qrcode\" showtext=\"true\" value=\"https://9540558-sb1.app.netsuite.com"+recUrl+"\" /></td></tr>"+ "<tr ><td align=\"center\" ><barcode width=\"120px\" height=\"100px\" codetype=\"code128\" showtext=\"true\" value=\""+famId+"\" /></td></tr>"+ // "<tr><td align=\"center\" >Id: "+famId+"</td></tr>"+ // "<tr><td align=\"center\" >Serial: "+famSerial+"</td></tr>"+ "</table>"; xmlStr += "</body>\n</pdf>";
c
Hold on! Working on it ...