Reply to: Display Default ImageMarch 27, 2012 at 5:41 pm
The SetRenderedContent API does not modify the XML source so something else must be going on with your code.
Our CSS selector support doesn't support that CSS3 selector $=, so you can't use that. Selector support is CSS2 only.
You can probably use CSS if you don't mind creating the CSS dynamically. There are APIs that will allow you to do that. (I'd really stick with SetRenderedContent though if you have it working already.) Please see the following in the Programmers Guide:
Off the top of my head I think the logic would need to be something like this:
1) Walk the document to find out all the references you have with *.pdf files. This can be done various ways. The fastest is probably to visit every
2) Generate a string containing all the various graphic[fileref$=”mydoc.pdf”] based on step 1, so you end up with:
3) Add that string on to the end of your CSS (in memory) using the APIs I've listed above.