Skip to main content
Participant
March 17, 2011
Question

[JS][CS3] Place the same image multiple times?

  • March 17, 2011
  • 2 replies
  • 790 views

I have a javascript that processes a set of multiple-choice test items in XML.  The XML structure identifies parts of the item such as intro, question, answer choice A, answer choice B, etc.

I have a small AI file for each answer choice that has a fill-in-the-bubble circle with the letter A, B, C, or D inside.  The part of the script that processes each answer choice has a line that does myElement.insertionPoints.item(0).place(answerBubbleFile), in other words it places the answer bubble graphic at the beginning of the answer choice.

The problem I am having is that this ends up creating a huge INDD file and likewise huge PDFs.  The same 4 graphics are evidently being stored separately for each item, upwards of 50 items per test.

Is there a more efficient way to do this where I could have only one copy of each graphic and have each of the places where it appears simply be a reference to that one file?

This topic has been closed for replies.

2 replies

Mayhem SWE
Inspiring
March 18, 2011

Does InDesign still save one preview per instance if you only mount the image once and then make additional copies from the first instance?

Participant
March 18, 2011

Sorry for the self-reply but there is a second part here:  Assuming there is no way to get around having these "answer bubble" graphics being stored redundantly in my document, what is the best way to make them as small as possible?

I am going to try SVG since the files are really simple (one circle and one text character).  If that works, the files will be smaller by a factor of 1,000.

Harbs.
Legend
March 18, 2011

InDesign doesn't support SVG without a third party plugin.

The problem with the file size is not because of the image, but because of the preview, so I don't think file type makes any difference...

If the graphic is a simple vector, you can try pasting from Illustrator as native InDesign paths. Those don't have preview images.

Harbs