iTextSharp.text.pdf.PdfAnnotation.CreateFileAttachment C# (CSharp) Метод

CreateFileAttachment() публичный статический Метод

public static CreateFileAttachment ( PdfWriter writer, Rectangle rect, String contents, PdfFileSpecification fs ) : PdfAnnotation
writer PdfWriter
rect iTextSharp.text.Rectangle
contents String
fs PdfFileSpecification
Результат PdfAnnotation
        public static PdfAnnotation CreateFileAttachment(PdfWriter writer, Rectangle rect, String contents, PdfFileSpecification fs)
        {
            PdfAnnotation annot = new PdfAnnotation(writer, rect);
            annot.Put(PdfName.SUBTYPE, PdfName.FILEATTACHMENT);
            if (contents != null)
                annot.Put(PdfName.CONTENTS, new PdfString(contents, PdfObject.TEXT_UNICODE));
            annot.Put(PdfName.FS, fs.Reference);
            return annot;
        }

Same methods

PdfAnnotation::CreateFileAttachment ( PdfWriter writer, Rectangle rect, String contents, byte fileStore, String file, String fileDisplay ) : PdfAnnotation