Hi all,
I use the typical functionality ( kImportResourceCmdBoss / kPlaceItemInGraphicFrameCmdBoss ) to place pictures into an existing frame. It works for almost all types of pictures. It does not work for TIFF's with an alpha channel. In this case the call of CmdUtils::ProcessCommand( placecmd ) returns a code of "2", which seems to be undocumented.
I can place cut-out TIFF's with my code if the TIFF tag 338 contains a"1" or "2" (associated / unassociated alpha channel), but my sample file (generated sometimes in the past with Photoshop CS4 / Mac) has a value of "0" in this tag, what means: unspecified.
In general, InDesign is able to import this file if I switch-off my PlugIn. Then I can drop the TIFF on a rectangle; InDesign does place it into the rect.
Is there an additional function call I need to make it work?
Thanks for any useful hint!