$ 0 0 How to replace the line of code: textFrames for images (the script may specify PDF instead of all graphics?)app.activeDocument.textFrames.everyItem().fit(FitOptions.FRAME_TO_CONTENT); Thanks.