AddDocumentAttachment
İçindekiler
[
Saklamak
]AddDocumentAttachment(string, string)
Ek açıklama olmadan belge eki ekler.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
Parametre | Tip | Tanım |
---|---|---|
fileAttachmentPath | String | Dosyanın yolu eklenecektir. |
description | String | Açı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
- class PdfContentEditor
- ad alanı Aspose.Pdf.Facades
- toplantı Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Ek açıklama olmadan belge eki ekler.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
Parametre | Tip | Tanım |
---|---|---|
fileAttachmentStream | Stream | Dosya akışı eklenecektir. |
fileAttachmentName | String | Ek adı. |
description | String | Açı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
- class PdfContentEditor
- ad alanı Aspose.Pdf.Facades
- toplantı Aspose.PDF