Example #1
0
        public static AnnotationUnderline Create(Rect rect, quadrilateralList ql)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("Underline");
            AnnotationUnderline underline1 = (Resources.Get(dict1, typeof(AnnotationUnderline)) as AnnotationUnderline);

            underline1.Rect       = rect;
            underline1.QuadPoints = ql;
            Library.CreateIndirect(dict1);
            return(underline1);
        }
Example #2
0
        public static AnnotationStrikeOut Create(Rect rect, quadrilateralList ql)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("StrikeOut");
            AnnotationStrikeOut out1 = (Resources.Get(dict1, typeof(AnnotationStrikeOut)) as AnnotationStrikeOut);

            out1.Rect       = rect;
            out1.QuadPoints = ql;
            Library.CreateIndirect(dict1);
            return(out1);
        }
Example #3
0
        public static AnnotationSquiggly Create(Rect rect, quadrilateralList ql)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("Squiggly");
            AnnotationSquiggly squiggly1 = (Resources.Get(dict1, typeof(AnnotationSquiggly)) as AnnotationSquiggly);

            squiggly1.Rect       = rect;
            squiggly1.QuadPoints = ql;
            Library.CreateIndirect(dict1);
            return(squiggly1);
        }
Example #4
0
        public static AnnotationHighlight Create(Rect rect, quadrilateralList ql)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("Highlight");
            AnnotationHighlight highlight1 = (Resources.Get(dict1, typeof(AnnotationHighlight)) as AnnotationHighlight);

            highlight1.Rect       = rect;
            highlight1.QuadPoints = ql;
            Library.CreateIndirect(dict1);
            return(highlight1);
        }