You can associate optional content with a form XObject (but you would still need to make an image XObject and put it inside the form XObject). But this seems unnecessarily complicated. 8.11.3.3 says that either an form or an image XObject can contain an OC key, in addition to markers in the content stream. I think you need a comprehensive reading of 8.11.
↧