The /OpenAction dictionary comprises two entries:

 

key = /D  value =
System.Collections.Generic.List'1[iTextSharp.text.pdf.PdfObject]

key = /S  value = /GoTo

 

Hence, the value associated with key /D is a generic list of PdfObjects.

 

However,

 

1. using the term kvp.Value[n]  ...  [where kvp is the KeyValuePair<PdfName,
PdfObject> for each OpenAction entry]

 

   results in compile error : Cannot apply indexing with[] to an expression
of type 'iTextSharp.text.pdf.PdfObject'

 

   but Value is a list of PdfObjects not a single PdfObject ---- ??

 

2. using foreach ...  foreach (PdfObject obj in kvp>value) {.....}

 

   results in compile error : foreach statement cannot operate on variables
of type 'iTextSharp.text.pdf.PdfObject' because PdfObject does not contain a
public definition for 'GetEnumerator'.

 

   and yet ....  List<PdfObject> objList = new List<PdfObject>();  foreach
(PdfObject obj in objList) {.....} is OK  ---  ??

 

 

Console.WriteLine ("key = {0}, Value = {1}", kvp.Key, kvp.Value)  documents
Value to be a generic list of PdfObjects (see above) but Value is acting
like a single PdfObject.

 

Can anyone please explain?

 

Many thanks.

 

William

 

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to