PdfContentEditor.AddDocumentAttachment
Contents
[
Hide
]AddDocumentAttachment(string, string)
Adds document attachment with no annotation.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
Parameter | Type | Description |
---|---|---|
fileAttachmentPath | String | The path of the file will be attached. |
description | String | The description information. |
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
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Adds document attachment with no annotation.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
Parameter | Type | Description |
---|---|---|
fileAttachmentStream | Stream | The stream of the file will be attached. |
fileAttachmentName | String | The attachment name. |
description | String | The description information. |
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
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF