Skip to main content
KlausFriese
Inspiring
January 12, 2010
Answered

(Can't write in InDesign Server forum) - [Java/Corba] images appear only as grey box

  • January 12, 2010
  • 1 reply
  • 779 views

Hello,  sorry for posting here, but I can't post in the IDS-Forum. Click on 'post message' deletes the text ..  We're working on our first plugin for InDesign Server. We are creating Documents with boxes and place graphics (in PDF format) in this boxes. The problem is: After opening the document in InDesign we just see grey boxes and no images. The links in the document are ok and when we print, we see the images. I think, the internal preview of the graphics are not created. Printing uses the original file and there we can see the image.  In the code we create an rectangle with addRectangle() and place the image with the place() command. Is there anything else we must do to see the image in InDesign?  thanks for any ideas Klaus Friese

This topic has been closed for replies.
Correct answer Peter Schuelke

Hi Klaus,

have a look at the following snippet to be called at startup:

InterfacePtr<IServerSettings> iServerSettings( iSession, UseDefaultIID() );
if ( iServerSettings )
    iServerSettings->SetImagePreview( true );

Best,

Peter

1 reply

Peter SchuelkeCorrect answer
Participating Frequently
January 12, 2010

Hi Klaus,

have a look at the following snippet to be called at startup:

InterfacePtr<IServerSettings> iServerSettings( iSession, UseDefaultIID() );
if ( iServerSettings )
    iServerSettings->SetImagePreview( true );

Best,

Peter

KlausFriese
Inspiring
January 14, 2010

Thanks, that's it.   For InDesignServer with Java/Corba the method is called  inDesignServer.getApplication().setImagePreview( true );  and that worked