Home › Forums › General XMetaL Discussion › Display Default Image › Reply To: Display Default Image
Reply to: Display Default Image
March 28, 2012 at 7:29 pmI was thinking something more along these lines:
//XMetaL Script Language JScript:
if (ActiveDocument.ViewType == sqViewNormal || ActiveDocument.ViewType == sqViewTagsOn) {
var doc = Application.ActiveDocument;
var graphicElemList = doc.getElementsByTagName("graphic");
for(var i = 0; i < graphicElemList.length; i++) {
if(endsWith(graphicElem.attributes.getnamedItem("fileref").nodeValue,"pdf")) {
var graphicElem=graphicElemList.item(i);
doc.SetRenderedContent(graphicElem, "[PDF]");
}
}
}