Home Forums General XMetaL Discussion Display Default Image Reply To: Display Default Image

Derek Read

Reply to: Display Default Image

I 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]");
}
}
}

Reply

Products
Downloads
Support