PdfContentEditor.AddDocumentAttachment
Contenido
[
Ocultar
]AddDocumentAttachment(string, string)
Agrega un archivo adjunto de documento sin anotación.
public void AddDocumentAttachment(string fileAttachmentPath, string description)
| Parámetro | Tipo | Descripción |
|---|---|---|
| fileAttachmentPath | String | La ruta del archivo que se adjuntará. |
| description | String | La información de descripción. |
Ejemplos
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");
Véase también
- clase PdfContentEditor
- espacio de nombres Aspose.Pdf.Facades
- ensamblado Aspose.PDF
AddDocumentAttachment(Stream, string, string)
Agrega un archivo adjunto de documento sin anotación.
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName,
string description)
| Parámetro | Tipo | Descripción |
|---|---|---|
| fileAttachmentStream | Stream | El flujo del archivo que se adjuntará. |
| fileAttachmentName | String | El nombre del archivo adjunto. |
| description | String | La información de descripción. |
Ejemplos
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");
}
Véase también
- clase PdfContentEditor
- espacio de nombres Aspose.Pdf.Facades
- ensamblado Aspose.PDF