PdfContentEditor.AddDocumentAttachment
Содержание
[
Скрывать
]AddDocumentAttachment(string, string)
Добавляет вложение документа без аннотации.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
| Параметр | Тип | Описание |
|---|---|---|
| fileAttachmentPath | String | Путь к файлу, который будет прикреплен. |
| description | String | Информация о описании. |
Примеры
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");
См. также
- класс PdfContentEditor
- пространство имен Aspose.Pdf.Facades
- сборка Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Добавляет вложение документа без аннотации.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
| Параметр | Тип | Описание |
|---|---|---|
| fileAttachmentStream | Stream | Поток файла, который будет прикреплен. |
| fileAttachmentName | String | Имя вложения. |
| description | String | Информация о описании. |
Примеры
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");
}
См. также
- класс PdfContentEditor
- пространство имен Aspose.Pdf.Facades
- сборка Aspose.PDF