I want to create a PDF document with attached documents.
That works great, I get a nice icon in my PDF document.
Now I want to add a name to that attachement, next to that icon.
E.g. when I add a word file with a customer review in the PDF document I want to have the icon and right next to it “customer review”.
I’ve searched the documentation for this, but all I could find was the possibility to add notes to the attachment icon. This is not what I’m looking for since I need to move over the icon with my cursor to view the note. I want to have it visible at all times.
A screenshot of what I have now in the generated PDF document:
An edited screenhot of what I’m looking for to accomplish in the generated PDF document:
Is it possible to generate the PDF document this way ?
To add the attachment I’m using this code:
//Instantiate attachment instance by calling its empty constructor Attachment fileAttachment = new Attachment(); //Add attachment in the paragraphs collection of the section sec1.Paragraphs.Add(fileAttachment); //Set attachment type to File using AttachmentType enumeration fileAttachment.AttachmentType = AttachmentType.File; //Set the path of the attachment file fileAttachment.AttachedFileName = "C:/ps4BA15.doc"; fileAttachment.NoteContent = "customer review"; //Set the type of the file to be attached fileAttachment.AttachedFileType = "doc";
Thanks in advance!