I can't seem to get an Attachment Note in to a pdf the following example, Im using the newest version of Aspose.Pdf for .Net: is there any consiveable reason why it is not working , it generates the pdf but there is no AttachmentNote?
//Instantiate Pdf instance by calling its empty constructor
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
//Add a section into the pdf document
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
//Instantiate attachment instance
Aspose.Pdf.Generator.Attachment noteAttachment = new Aspose.Pdf.Generator.Attachment();
//Add the attachment in the paragraphs collection of the section
sec1.Paragraphs.Add(noteAttachment);
//Set the attachment type to note to make it a note annotation
noteAttachment.AttachmentType = Aspose.Pdf.Generator.AttachmentType.Note;
//Set the content of the note annotation
noteAttachment.NoteContent = "This is a note.";
//Set the title or heading of the note
noteAttachment.NoteHeading = "The title";
//Set the note to be opened when PDF document is opened
noteAttachment.IsNoteOpen = true;
pdf1.Save(Response.OutputStream)
If any one has an answer to this ASAP i will be gratefull as i am evaluating this product and if i cant get it working , i will have to look at other products.
Regards,
Matt