Hi all,
I'm on 13.5, but we'll upgrade in a few weeks.
I'm working on an MDG Technology which includes stereotypes where I use a shape script to decorate elements with images, which are included in the technology. They were imported into the MDG project as PNG, and render correctly in diagrams.
However, when I generate a document, they get black backgrounds.
Some images are monochrome black + whatever background colour is in the image, so they turn out as plain black squares.
Other images have colour. Their foreground is unaffected, but they get the black background.
Both variants render correctly in diagrams, with transparent backgrounds.
I had noticed the same problem when copy/pasting from a diagram into MS Office, but I got rid of that by switching the clipboard format to Bitmap (instead of Metafile) in the preferences. But there's no corresponding option for document generation.
There is a Renderer option in Diagram -- Appearance, but it does not seem to affect document generation, or at least, none of the renderers resolve the issue. I've tried all six.
I get the same result whether I generate DOCX or PDF. RTF also yields the same result, but takes massive amounts of time.
For a document which contains one diagram and nothing else, where the diagram has 12 connectors (information flow) and 10 elements with images and 3 without, the DOCX weighs in at 40 MB and the RTF 80. (The PDF ends up at 500 K.)
A similar document where the diagram has no decoration images comes in at 110 K. The images are 20 KB.
Clearly there's something weird going on with images in shape scripts.
Is there anything I can do to fix the images?
Or is someone able to check if this is fixed in 15?
I've found no mention in the version histories.
Or -- last ditch -- is there a way of getting a diagram image into a generated document without using DocumentGenerator.DocumentDiagram()? There's no InsertImage() in the API.
Cheers,
/Uffe