AddDocumentAttachment

AddDocumentAttachment(string, string)

Ajoute une pièce jointe au document sans annotation.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ParamètreTaperLa description
fileAttachmentPathStringLe chemin du fichier sera joint.
descriptionStringLes informations descriptives.

Exemples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");

Voir également


AddDocumentAttachment(Stream, string, string)

Ajoute une pièce jointe au document sans annotation.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ParamètreTaperLa description
fileAttachmentStreamStreamLe flux du fichier sera joint.
fileAttachmentNameStringLe nom de la pièce jointe.
descriptionStringLes informations descriptives.

Exemples

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");
}    

Voir également