论坛帮助 |
社区圈子 |
日历事件 |
2022-03-30, 08:23 | 只看该作者 #47 | |||
|
||||
正式会员
等级: 七袋长老
|
o = gr.pathItems.ellipse(((tmin - linespace) + (od / 2)) - (linelength / 2), (lmin + ((lmax - lmin) / 2)) - (od / 2), od, od); o.strokeColor = regColor; o.strokeWidth = lw; o.strokeDashes = []; o.filled = false; w = myDate(); if (haveFN.value == true) { docname = doc.name; } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } if (wzzc.value == true) {//文字左侧信息 text.contents = text5 + text6+ text7 + text1 + text2 + text3; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.rotate(-90); text.left = ((lmin - linespace) - (linelength / 2)) - (text.width / 2) -0.5; text.top = (tmax - linelength) + 11.5; } if (wzzs.value == true) {//文字左上信息 text.contents = text5 + text6+ text7 + text1 + text2 + text3; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left=(lmax-(text.geometricBounds[2]-text.geometricBounds[0]))-8.503938; text.left = lmin + 15; text.top = tmax + text.height+ 13.7; } if (wzzx.value == true) {//文字左下信息 text.contents = text5 + text6+ text7 + text1 + text2 + text3; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = lmin + 15; text.top = tmin + text.height - 28.5; } if (wzyc.value == true) {//文字右侧信息 text.contents = text5 + text6+ text7 + text1 + text2 + text3; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = (lmax - (text.geometricBounds[2] - text.geometricBounds[0])); text.rotate(90); text.left = (lmax + linespace + (linelength / 2)) - (text.width / 2); text.top = tmin + text.height+ 14; } if (wzyx.value == true) {//文字右下信息 text.contents = text5 + text6+ text7 + text1 + text2 + text3; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = (lmax - (text.geometricBounds[2] - text.geometricBounds[0])) -5; text.top = tmin + text.height - 28.5; } } } if (zlagui.value == true || flagui.value == true) { if (sfValue.text != "") { linkfile = g.placedItems.add(); linkfile.file = new File(sfValue.text); } else { if (zlagui.value == true) { linkpdf = "Lagui_z.pdf"; } else { linkpdf = "Lagui_f.pdf"; } laguifile = new File(set_folder + linkpdf); if (laguifile.exists) { linkfile = g.placedItems.add(); linkfile.file = laguifile; } else { 此帖于 2022-03-30 08:43 被 tiantian1998 编辑. |
|||
2022-03-30, 10:22 | 只看该作者 #49 | ||
|
|||
正式会员
等级: 二袋长老
|
引用:
这个要求是对开机的副手提的,说是放左边装版时看颜色要转过来看不方便,放下面或者右边比较好。我想下面一般印不出来,暂时先放右侧试试。 |
||
2022-03-31, 07:14 | 只看该作者 #51 | |||
|
||||
正式会员
等级: 七袋长老
|
【原来复制代码如下】 o.strokeWidth = lw; o.strokeDashes = []; o.filled = false; {/*左侧信息开始*/} if (wzzc.value == true) { {/*系统时间*/} w = myDate(); if (haveFN.value == true) { docname = new File(doc.fullName).fsName; } else { if (haveFN.value == true) { docname = doc.name; } } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true|| haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (paperSize1.value == true) { text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm "; } else { text4 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } text.contents = text5 + text6+ text7 + text1 + text2 + text3 + text4; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.rotate(-90); text.left = ((lmin - linespace) - (linelength / 2)) - (text.width / 2) -0.5; text.top = (tmax - linelength) + 11.5; } } else { } {/*左侧信息结束*/} {/*左上信息开始*/} if (wzzs.value == true) { {/*系统时间*/} w = myDate(); if (haveFN.value == true) { docname = new File(doc.fullName).fsName; } else { if (haveFN.value == true) { docname = doc.name; } } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true|| haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (paperSize1.value == true) { text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm "; } else { text4 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } text.contents = text5 + text6+ text7 + text1 + text2 + text3 + text4; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = lmin + 15; text.top = tmax + text.height+ 13.7; } } else { } {/*左上信息结束*/} {/*左下信息开始*/} if (wzzx.value == true) { {/*系统时间*/} w = myDate(); if (haveFN.value == true) { docname = new File(doc.fullName).fsName; } else { if (haveFN.value == true) { docname = doc.name; } } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true|| haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (paperSize1.value == true) { text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm "; } else { text4 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } text.contents = text5 + text6+ text7 + text1 + text2 + text3 + text4; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = lmin + 15; text.top = tmin + text.height - 28.5; } } else { } {/*左下信息结束*/} {/*右侧信息开始*/} if (wzyc.value == true) { {/*系统时间*/} w = myDate(); if (haveFN.value == true) { docname = new File(doc.fullName).fsName; } else { if (haveFN.value == true) { docname = doc.name; } } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true|| haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (paperSize1.value == true) { text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm "; } else { text4 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } text.contents = text5 + text6+ text7 + text1 + text2 + text3 + text4; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = (lmax - (text.geometricBounds[2] - text.geometricBounds[0])); text.rotate(90); text.left = (lmax + linespace + (linelength / 2)) - (text.width / 2); text.top = tmin + text.height+ 14; } } else { } {/*右侧信息结束*/} {/*右下信息开始*/} if (wzyx.value == true) { {/*系统时间*/} w = myDate(); if (haveFN.value == true) { docname = new File(doc.fullName).fsName; } else { if (haveFN.value == true) { docname = doc.name; } } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || paperSize1.value == true|| haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (paperSize1.value == true) { text4 = "纸张:" + paperW.text + "x" + paperH.text + "mm "; } else { text4 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } text.contents = text5 + text6+ text7 + text1 + text2 + text3 + text4; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; text.left = (lmax - (text.geometricBounds[2] - text.geometricBounds[0])) -5; text.top = tmin + text.height - 28.5; } }} else { } {/*右下信息结束*/} zlagui.onClick = function() { flagui.value = false; }; flagui.onClick = function() { zlagui.value = false; }; if (zlagui.value == true || flagui.value == true) { if (sfValue.text != "") { 【精简合并相同代码】 o.strokeDashes = []; o.filled = false; w = myDate(); if (haveFN.value == true) { docname = doc.name; } if (littleSize.value == true || bigSize.value == true || paperSize.value == true || haveFN.value == true|| haveTM.value == true|| weidong2.value == true) { gw = g.width / v; gh = g.height / v; text = g.textFrames.add(); text.textRange.characterAttributes.textFont = Textfontname; if (littleSize.value == true) { text1 = "成品:" + Math.round(parseInt((w1 / 2.834646) * 100) / 100) + "x" + Math.round(parseInt((h1 / 2.834646) * 100) / 100) + "mm "; } else { text1 = ""; } if (bigSize.value == true) { text2 = "拼版:" + Math.round(parseInt(((lmax - lmin) / 2.834646) * 100) / 100) + "x" + Math.round(parseInt(((tmax - tmin) / 2.834646) * 100) / 100) + "mm "; } else { text2 = ""; } if (paperSize.value == true) { text3 = "角线:" + Math.round((gw * 100) / 100) + "x" + Math.round((gh * 100) / 100) + "mm "; } else { text3 = ""; } if (haveFN.value== true) { text5 = doc.name + " "; } else { text5 = ""; } if (haveTM.value== true) { text6 = w + " "; } else { text6 = ""; } if (weidong2.text != "") { text7 = weidong2.text + " "; } else { text7 = ""; } text.contents = text5 + text6+ text7 + text1 + text2 + text3; text.textRange.characterAttributes.fillColor = regColor; text.textRange.characterAttributes.stroked = false; text.textRange.characterAttributes.size = textfontsize; if (wzzc.value == true) {//文字左侧信息 text.rotate(-90); text.left = ((lmin - linespace) - (linelength / 2)) - (text.width / 2) -0.5; text.top = (tmax - linelength) + 11.5; } if (wzzs.value == true) {//文字左上信息 text.left = lmin + 15; text.top = tmax + text.height+ 13.7; } if (wzzx.value == true) {//文字左下信息 text.left = lmin + 15; text.top = tmin + text.height - 28.5; } if (wzyc.value == true) {//文字右侧信息 text.left = (lmax - (text.geometricBounds[2] - text.geometricBounds[0])); text.rotate(90); text.left = (lmax + linespace + (linelength / 2)) - (text.width / 2); text.top = tmin + text.height+ 14; } if (wzyx.value == true) {//文字右下信息 text.left = (lmax - (text.geometricBounds[2] - text.geometricBounds[0])) -5; text.top = tmin + text.height - 28.5; } } } if (zlagui.value == true || flagui.value == true) { if (sfValue.text != "") { linkfile = g.placedItems.add(); linkfile.file = new File(sfValue.text); 此帖于 2022-03-31 07:43 被 tiantian1998 编辑. |
|||