AddDocumentAttachment

AddDocumentAttachment(string, string)

Agrega documento adjunto sin anotación.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ParámetroEscribeDescripción
fileAttachmentPathStringSe adjuntará la ruta del archivo.
descriptionStringLa información de la 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");

Ver también


AddDocumentAttachment(Stream, string, string)

Agrega documento adjunto sin anotación.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ParámetroEscribeDescripción
fileAttachmentStreamStreamSe adjuntará la transmisión del archivo.
fileAttachmentNameStringEl nombre del archivo adjunto.
descriptionStringLa información de la 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");
}    

Ver también