Question
Convert PX to CM
Quick question ![]()
How convert PX to CM ?
var doc = activeDocument;
var artLayer = activeDocument.activeLayer;
var textItem = artLayer.textItem;
textItem.kind = TextType.PARAGRAPHTEXT;
var textWidth = textItem.width.as("px");
var textHeight = textItem.height.as("px");
alert(textWidth+"_"+textHeight);
textItem.width.as("cm"); ----> It does not show the correct value and the value is different depending on the resolution.
;
