PdfContentEditor.AddDocumentAttachment

AddDocumentAttachment(string, string)

تضيف مرفق مستند بدون تعليق.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ParameterTypeDescription
fileAttachmentPathStringمسار الملف الذي سيتم إرفاقه.
descriptionStringمعلومات الوصف.

Examples

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

See Also


AddDocumentAttachment(Stream, string, string)

تضيف مرفق مستند بدون تعليق.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ParameterTypeDescription
fileAttachmentStreamStreamتدفق الملف الذي سيتم إرفاقه.
fileAttachmentNameStringاسم المرفق.
descriptionStringمعلومات الوصف.

Examples

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");
}    

See Also