Exemplo n.º 1
0
        public static AnnotationFileAttachment Create(Rect rect, FileSpec file)
        {
            AnnotationFileAttachment attachment1 = AnnotationFileAttachment.Create(rect);

            attachment1.FileSpecification = file;
            return(attachment1);
        }
Exemplo n.º 2
0
        public static AnnotationFileAttachment Create(Rect rect, string filename)
        {
            AnnotationFileAttachment attachment1 = AnnotationFileAttachment.Create(rect);

            attachment1.FileSpecification = new FileSpec(Library.CreateString(filename));
            return(attachment1);
        }
Exemplo n.º 3
0
        public static AnnotationFileAttachment Create(Rect rect, FileSpec file, string iconname)
        {
            AnnotationFileAttachment attachment1 = AnnotationFileAttachment.Create(rect);

            attachment1.FileSpecification = file;
            attachment1.IconName          = iconname;
            return(attachment1);
        }
Exemplo n.º 4
0
        public static AnnotationFileAttachment Create(Rect rect)
        {
            PDFDict dict1 = Library.CreateDict();

            dict1["Subtype"] = Library.CreateName("FileAttachment");
            AnnotationFileAttachment attachment1 = (Resources.Get(dict1, typeof(AnnotationFileAttachment)) as AnnotationFileAttachment);

            attachment1.Rect = rect;
            Library.CreateIndirect(dict1);
            return(attachment1);
        }