iTextSharp.text.pdf.SimpleNamedDestination.OutputNamedDestinationAsStrings C# (CSharp) 메소드

OutputNamedDestinationAsStrings() 공개 정적인 메소드

public static OutputNamedDestinationAsStrings ( string>.Dictionary names, PdfWriter writer ) : PdfDictionary
names string>.Dictionary
writer PdfWriter
리턴 PdfDictionary
        public static PdfDictionary OutputNamedDestinationAsStrings(Dictionary<string,string> names, PdfWriter writer)
        {
            Dictionary<string,PdfObject> n2 = new Dictionary<string,PdfObject>(names.Count);
            foreach (String key in names.Keys) {
                try {
                    String value = names[key];
                    PdfArray ar = CreateDestinationArray(value, writer);
                    n2[key] = writer.AddToBody(ar).IndirectReference;
                }
                catch {
                    // empty on purpose
                }
            }
            return PdfNameTree.WriteTree(n2, writer);
        }