Using NoteWindowPosition Causes Note to be in Open State


I believe there is a bug with the new feature that allows setting of the Note position/size. In the code below, I set IsNoteOpen to False. However, it ends up being open in the generated PDF file. If I comment out one line below, the setting of the NoteWindowPosition rectangle, then the note is in the closed state as it should be. I do need to set the note position/size, but I need the note to be in the closed state when the PDF file is first opened.

This is an urgent matter for my project. Can this be fixed in the next few days?

Joe A.

Sub AsposeTestIt()
Dim pdf1 As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf
Dim sec1 As Aspose.Pdf.Section = New Aspose.Pdf.Section(pdf1)
sec1.PageInfo.PageWidth = 2560 + 90 + 90
sec1.PageInfo.PageHeight = 3171 + 72 + 72

Dim noteAttachment As Aspose.Pdf.Attachment = New Aspose.Pdf.Attachment
noteAttachment.AttachmentType = Aspose.Pdf.AttachmentType.Note
noteAttachment.NoteContent = "This is a note."
noteAttachment.NoteHeading = "The title"
noteAttachment.PositioningType = PositioningType.ColumnRelative
noteAttachment.Top = 100
noteAttachment.Left = 300

noteAttachment.NoteWindowPositioningType = NoteWindowPositioningType.NoteRelative

' Comment out the line below, it the note will be closed.
' With this line, the note will be open, even though IsNoteOpen
' is set to False.
noteAttachment.NoteWindowPosition = New RectangleArea(20, 20, 180, 200)

noteAttachment.IsNoteOpen = False

End Sub


Dear Joe,

Thank you for considering Aspose.

I have fixed this bug. Please download hot fix here.



I just tried your fix, and it now works correctly. Thank you very much for fixing this bug so quickly.

Joe A.