How do you add a completely custom key and value to a page dictionary?

Q:

How do you add a completely custom key and value to a page dictionary?

For example, I would like the page dictionary to be:

<</Type/Page/MY_ENTRY (My_INFO)/MediaBox[ 0 0 612 792]/Parent 4 0 R/Resources<</ProcSet[/PDF/
ImageC/Text]/ExtGState 11 0 R/XObject 16 0 R/Font 24 0 R>>/Contents[ 7 0 R]>> endobj

A:

Given a PDFDoc mydoc, you can add this entry to each page with the following:

for (PageIterator itr = mydoc.GetPageIterator(); itr.HasNext(); itr.Next())
itr.Current().GetSDFObj().PutName(“MY_ENTRY”, “My_INFO”);

For additional sample code showing how to use low-level SDF/Cos API, please take a look at SDF sample project:
http://www.pdftron.com/pdfnet/samplecode.html#SDF

Also, you may also want to go over PDFNet Low-level intro: http://www.pdftron.com/pdfnet/intro.html