AddDocumentAttachment
Contenuti
[
Nascondere
]AddDocumentAttachment(string, string)
Aggiunge un allegato al documento senza annotazioni.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
Parametro | Tipo | Descrizione |
---|---|---|
fileAttachmentPath | String | Il percorso del file verrà allegato. |
description | String | Le informazioni sulla descrizione. |
Esempi
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");
Guarda anche
- class PdfContentEditor
- spazio dei nomi Aspose.Pdf.Facades
- assemblea Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Aggiunge un allegato al documento senza annotazioni.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
Parametro | Tipo | Descrizione |
---|---|---|
fileAttachmentStream | Stream | Lo stream del file verrà allegato. |
fileAttachmentName | String | Il nome dell’allegato. |
description | String | Le informazioni sulla descrizione. |
Esempi
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");
}
Guarda anche
- class PdfContentEditor
- spazio dei nomi Aspose.Pdf.Facades
- assemblea Aspose.PDF