The following code snippet for ByteScout PDF Suite works best when you need to quickly extract video from pdf with pdf extractor sdk in your VB.NET application. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.
The trial version of ByteScout PDF Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
Imports Bytescout.PDFExtractor Class Program Friend Shared Sub Main(ByVal args As String()) ' Create Bytescout.PDFExtractor.MultimediaExtractor instance Dim extractor As New MultimediaExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load PDF document ' (!) We do not provide the sample document, please load your own. extractor.LoadDocumentFromFile("sample.pdf") Dim i As Integer = 0 ' Initialize movies enumeration If extractor.GetFirstVideo() Then Do Dim outputFileName As String = "movie" & i & extractor.GetCurrentVideoExtension() ' Save movie to file extractor.SaveCurrentVideoToFile(outputFileName) i = i + 1 Loop While extractor.GetNextVideo() ' Advance movies enumeration End If ' Cleanup extractor.Dispose() End Sub End Class