AddDocumentAttachment

AddDocumentAttachment(string, string)

Добавляет вложение к документу без аннотации.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ПараметрТипОписание
fileAttachmentPathStringПуть к файлу будет прикреплен.
descriptionStringИнформация описания.

Примеры

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");

Смотрите также


AddDocumentAttachment(Stream, string, string)

Добавляет вложение к документу без аннотации.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ПараметрТипОписание
fileAttachmentStreamStreamПоток файла будет прикреплен.
fileAttachmentNameStringИмя вложения.
descriptionStringИнформация описания.

Примеры

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
using(System.IO.FileStream attStream = System.IO.File.OpenRead("attachment_file.pdf"))
{
    editor.AddDocumentAttachment(attStream, "attachment_file.pdf", "description of attachment_file");
    editor.Save("example_out.pdf");
}    

Смотрите также