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");
أنظر أيضا
- class 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");
}
أنظر أيضا
- class PdfContentEditor
- مساحة الاسم Aspose.Pdf.Facades
- المجسم Aspose.PDF