An easy to understand guide on how to extract video from pdf with pdf extractor sdk in VB.NET with this source code sample. What is ByteScout Premium Suite? It is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to extract video from pdf with pdf extractor sdk in your VB.NET application.
These VB.NET code samples for VB.NET guide developers to speed up coding of the application when using ByteScout Premium Suite. 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. If you want to use these VB.NET sample examples in one or many applications then they can be used easily.
You can download free trial version of ByteScout Premium Suite from our website with this and other 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