iTextSharp.text.pdf.PdfDictionary.GetAsIndirectObject C# (CSharp) Method

GetAsIndirectObject() public method

public GetAsIndirectObject ( PdfName key ) : PdfIndirectReference
key PdfName
return PdfIndirectReference
        public PdfIndirectReference GetAsIndirectObject( PdfName key )
        {
            PdfIndirectReference refi = null;
            PdfObject orig = Get(key); // not getDirect this time.
            if (orig != null && orig.IsIndirect())
                refi = (PdfIndirectReference) orig;
            return refi;
        }

Usage Example

 private String GetParentIndRefStr(PdfDictionary dict) {
     return dict.GetAsIndirectObject(PdfName.PARENT).ToString();
 }