iTextSharp.text.pdf.PdfWriter.AddNamedDestinations C# (CSharp) Méthode

AddNamedDestinations() public méthode

public AddNamedDestinations ( String>.IDictionary map, int page_offset ) : void
map String>.IDictionary
page_offset int
Résultat void
        public void AddNamedDestinations(IDictionary<String, String> map, int page_offset)
        {
            int page;
            String dest;
            PdfDestination destination;
            foreach (KeyValuePair<string,string> entry in map) {
                dest = entry.Value;
                page = int.Parse(dest.Substring(0, dest.IndexOf(" ")));
                destination = new PdfDestination(dest.Substring(dest.IndexOf(" ") + 1));
                AddNamedDestination(entry.Key, page + page_offset, destination);
            }
        }