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");