Every ByteScout tool includes simple example VB.NET source codes that you can get here or in the folder with installed ByteScout product. What is ByteScout Data Extraction Suite? It is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can help you to extract video from pdf with pdf extractor sdk in your VB.NET application.
The following code snippet for ByteScout Data Extraction 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. Want to see how it works with your data then code testing will allow the function to be tested and work properly.
You can download free trial version of ByteScout Data Extraction Suite from our website to see and try many others source code samples for VB.NET.
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