AddDocumentAttachment
Inhalt
[
Ausblenden
]AddDocumentAttachment(string, string)
Fügt einen Dokumentanhang ohne Anmerkung hinzu.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
Parameter | Typ | Beschreibung |
---|---|---|
fileAttachmentPath | String | Der Pfad der Datei wird angehängt. |
description | String | Die Beschreibungsinformationen. |
Beispiele
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");
Siehe auch
- class PdfContentEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Fügt einen Dokumentanhang ohne Anmerkung hinzu.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
Parameter | Typ | Beschreibung |
---|---|---|
fileAttachmentStream | Stream | Der Stream der Datei wird angehängt. |
fileAttachmentName | String | Der Name des Anhangs. |
description | String | Die Beschreibungsinformationen. |
Beispiele
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");
}
Siehe auch
- class PdfContentEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF