AddDocumentAttachment
Innehåll
[
Dölj
]AddDocumentAttachment(string, string)
Lägger till dokumentbilaga utan anteckning.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
Parameter | Typ | Beskrivning |
---|---|---|
fileAttachmentPath | String | Sökvägen till filen bifogas. |
description | String | Beskrivningsinformationen. |
Exempel
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");
Se även
- class PdfContentEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Lägger till dokumentbilaga utan anteckning.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
Parameter | Typ | Beskrivning |
---|---|---|
fileAttachmentStream | Stream | Filströmmen bifogas. |
fileAttachmentName | String | Bilagans namn. |
description | String | Beskrivningsinformationen. |
Exempel
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");
}
Se även
- class PdfContentEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF