AddDocumentAttachment

AddDocumentAttachment(string, string)

Ek açıklama olmadan belge eki ekler.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ParametreTipTanım
fileAttachmentPathStringDosyanın yolu eklenecektir.
descriptionStringAçıklama bilgileri.

Örnekler

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

Ayrıca bakınız


AddDocumentAttachment(Stream, string, string)

Ek açıklama olmadan belge eki ekler.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ParametreTipTanım
fileAttachmentStreamStreamDosya akışı eklenecektir.
fileAttachmentNameStringEk adı.
descriptionStringAçıklama bilgileri.

Örnekler

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

Ayrıca bakınız