iTextSharp.text.pdf.parser.TaggedPdfReaderTool.InspectChildDictionary C# (CSharp) Method

InspectChildDictionary() public method

public InspectChildDictionary ( PdfDictionary k ) : void
k PdfDictionary
return void
        public void InspectChildDictionary(PdfDictionary k)
        {
            if (k == null)
                return;
            PdfName s = k.GetAsName(PdfName.S);
            if (s != null) {
                String tagN = PdfName.DecodeName(s.ToString());
                String tag = FixTagName(tagN);
                outp.Write("<");
                outp.Write(tag);
                outp.Write(">");
                PdfDictionary dict = k.GetAsDict(PdfName.PG);
                if (dict != null)
                    ParseTag(tagN, k.GetDirectObject(PdfName.K), dict);
                InspectChild(k.GetDirectObject(PdfName.K));
                outp.Write("</");
                outp.Write(tag);
                outp.WriteLine(">");
            } else
                InspectChild(k.GetDirectObject(PdfName.K));
        }