AddDocumentAttachment

AddDocumentAttachment(string, string)

Aggiunge un allegato al documento senza annotazioni.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ParametroTipoDescrizione
fileAttachmentPathStringIl percorso del file verrà allegato.
descriptionStringLe 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


AddDocumentAttachment(Stream, string, string)

Aggiunge un allegato al documento senza annotazioni.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ParametroTipoDescrizione
fileAttachmentStreamStreamLo stream del file verrà allegato.
fileAttachmentNameStringIl nome dell’allegato.
descriptionStringLe 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