internal static List <PDFAnnotation> GenerateAnnotations(PDFDocument pdf_document, Dictionary <string, byte[]> library_items_inks_cache)
        {
            List <PDFAnnotation> annotations = new List <PDFAnnotation>();

            if (pdf_document.DocumentExists)
            {
                PDFInkList ink_list = pdf_document.GetInks(library_items_inks_cache);
                foreach (int page in ink_list.GetAffectedPages())
                {
                    annotations.AddRange(GenerateAnnotations(pdf_document, page, ink_list));
                }
            }

            return(annotations);
        }
Beispiel #2
0
        internal static List <PDFAnnotation> GenerateAnnotations(PDFDocument pdf_document)
        {
            List <PDFAnnotation> annotations = new List <PDFAnnotation>();

            if (pdf_document.DocumentExists)
            {
                PDFInkList ink_list = pdf_document.GetInks();
                foreach (int page in ink_list.GetAffectedPages())
                {
                    annotations.AddRange(GenerateAnnotations(pdf_document, page, ink_list));
                }
            }

            return(annotations);
        }