This content has been marked as final.
Show 3 replies
-
1. Re: [JS CS3/CS4] Making embedded graphic "inline"
Harbs. Jun 22, 2009 4:46 AM (in response to Skempy)You can export it as a snippet, or library asset.
Harbs
-
2. Re: [JS CS3/CS4] Making embedded graphic "inline"
Skempy Jun 22, 2009 6:44 AM (in response to Harbs.)OK, that approach makes sense, thanks.
However, I cannot find any method for exporting snippets in the ESTK Object Model Viewer or if I search this forum.
Is this obvious or can you give me an example.
Thanks
Simon.
-
3. Re: [JS CS3/CS4] Making embedded graphic "inline"
Dirk Becker May 28, 2010 1:23 PM (in response to Skempy)I just had a similar problem.
I have no idea whether my solution works in CS3.( function() {
var doc = app.activeDocument;
// the image page item
var r = doc.rectangles.item(0);
// the destination textframe to hold the inline
var tf = doc.textFrames.item(0);
// it should already be tagged.
// create a nested, blank tag
var xe = tf.associatedXMLElement.xmlElements.add("bla");
// copy the rect as inline
xe.placeIntoInlineCopy(r,true);
} )();
Dirk



