AddDocumentAttachment

AddDocumentAttachment(string, string)

Fügt einen Dokumentanhang ohne Anmerkung hinzu.

public void AddDocumentAttachment(string fileAttachmentPath, string description)
ParameterTypBeschreibung
fileAttachmentPathStringDer Pfad der Datei wird angehängt.
descriptionStringDie Beschreibungsinformationen.

Beispiele

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

Siehe auch


AddDocumentAttachment(Stream, string, string)

Fügt einen Dokumentanhang ohne Anmerkung hinzu.

public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
ParameterTypBeschreibung
fileAttachmentStreamStreamDer Stream der Datei wird angehängt.
fileAttachmentNameStringDer Name des Anhangs.
descriptionStringDie Beschreibungsinformationen.

Beispiele

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

Siehe auch