How to extract medias from this pdf?

Hi, Support:

Here is a demo pdf that your api cannot extract medias from it, Please investigate for later update
π.pdf (105.2 KB)


Can you please also share the code snippet that you have tried at your end to extract the media from this document?

Dim MyPdf as new Aspose.Pdf.Document(sFile)
Dim Pages as integer=MyPdf.pages.count
Dim AuDs as integer
For ii = 1 To Papges
For Each annotation As Aspose.Pdf.Annotations.Annotation In MyPdf.Pages(ii).Annotations
If (annotation.AnnotationType = Aspose.Pdf.Annotations.AnnotationType.RichMedia Or
annotation.AnnotationType = Aspose.Pdf.Annotations.AnnotationType.Sound or annotation.AnnotationType =Annotations.AnnotationType.Screen) Then
AuDs = AuDs + 1
End If
'Here the value of AuDs should be over 1, but its real value is 0.

PS: The demo pdf file is created by MS OneNote.


We have checked the PDF shared by you and found that Adobe Reader was unable to play any of the media file. While clicking on the media icons in PDF, Adobe Reader is recognizing them as images only. Would you please confirm and share how these media files can be played in Adobe Reader so that we can further proceed to assist you accordingly.

you should use Adobe acrobat professional and right click the audio icon,and then click the right-popmenu for playing this media for play. and then you can capture the temporary audio file in the system temporary folder.


We have logged an issue as PDFNET-51873 in our issue tracking system to further investigate this case. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.