public static AnnotationFileAttachment Create(Rect rect, FileSpec file) { AnnotationFileAttachment attachment1 = AnnotationFileAttachment.Create(rect); attachment1.FileSpecification = file; return(attachment1); }
public static AnnotationFileAttachment Create(Rect rect, string filename) { AnnotationFileAttachment attachment1 = AnnotationFileAttachment.Create(rect); attachment1.FileSpecification = new FileSpec(Library.CreateString(filename)); return(attachment1); }
public static AnnotationFileAttachment Create(Rect rect, FileSpec file, string iconname) { AnnotationFileAttachment attachment1 = AnnotationFileAttachment.Create(rect); attachment1.FileSpecification = file; attachment1.IconName = iconname; return(attachment1); }
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); }