How do I create PDF 'screen' annotation using PDFNet?

Q: I've finally had some time to work through the PDFNet API and found
that it is well written and will most likely fill our needs. One
thing that has been stumping me though, is implementation of the
Screen Annotation.

I need to embed mpeg2 videos into the pdf and have determined (for
client compatibility issues) that I need to use the screen annotation
as opposed to the richmedia annoation (which is easier to implement).
I know I need to associate rendition actions and media clip rendition
objects to the annotation, but fail to make the annoation visible on
the page. I know the pdf is storing the content due to the file size.

Is there a way to use your Element Builder do create the form xobjects
to associate with the rendition/media object? I've looked at every
example I can find including the example where you extract a movie
from the rendition.
A: Using a tool such as CosEdit (
CosEditDemoInstall.exe) you could inspect the contents of this file
and replicate the same structure in PDF processed in your application.

➢ but fail to make the annoation visible on the page.

Perhaps you need to create the initial ‘annotation appearance’. For
example of how to use ElementBuilder to create form xobject used to
set the annotation appearance, please see U3D sample (http://

Obj ap_dict = annot.GetSDFObj().PutDict("AP");
using (ElementBuilder builder = new ElementBuilder()) {
using (ElementWriter writer = new ElementWriter()) {
  Image.Create(doc, input_path + "dice.jpg"),
     0, 0, bbox.Width(), bbox.Height()));
Obj normal_ap_stream = writer.End();
normal_ap_stream.PutName("Subtype", "Form");
normal_ap_stream.PutRect("BBox", 0, 0, bbox.Width(), bbox.Height());
ap_dict.Put("N", normal_ap_stream);
} }