Free Support Forum -

Link embeded ..wav file


Sorry, what Iwe want is to link a rectangle with a .wav sound file, but this file must be embeded into the PDF file ( like attachment), and the rectangle should be invisible.

Thank you.

Dear Hugh,

Thank you for considering Aspose.

You can embed your sound file as file attachment. Please refer to Attachment about how to use attachment in Aspose.Pdf. The rectangle will be invisible, but do you need an icon for the attachment?

Thank you, this way works very well. But I got new problem, I am trying to use For loop and Attachment array to add more than one file at different depth ( vertical location) on ONE page, but it generated more than one page.

I am using a TIFF as a background.
Thank you again.

Dear hughli,

Thank you for considering Aspose.

There are 2 solutions:

1) Enlarge page size. Since you used a TIFF as background, you can set Section.BackgroundImageFixedWidth to a larger number to enlarge the page size.

2) If you don’t want to enlarge your page size, I can add support for changing the icon size. In the current version, default icon size is used and customer can’t change it.