ByteScout PDF Extractor SDK - C# - Extract Video from PDF - ByteScout

ByteScout PDF Extractor SDK – C# – Extract Video from PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – C# – Extract Video from PDF

How to extract video from PDF in C# using ByteScout PDF Extractor SDK

Tutorial on how to extract video from PDF in C#

These source code samples are listed and grouped by their programming language and functions they use. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities and you can use it to extract video from PDF with C#.

Fast application programming interfaces of ByteScout PDF Extractor SDK for C# plus the instruction and the code below will help you quickly learn how to extract video from PDF. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Detailed tutorials and documentation are available along with installed ByteScout PDF Extractor SDK if you’d like to dive deeper into the topic and the details of the API.

ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.

Try ByteScout PDF Extractor SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using Bytescout.PDFExtractor; namespace ExtractVideo { class Program { static void Main(string[] args) { // Create Bytescout.PDFExtractor.MultimediaExtractor instance MultimediaExtractor extractor = 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-video.pdf"); int i = 0; // Initialize movies enumeration if (extractor.GetFirstVideo()) { do { string outputFileName = "movie" + i + extractor.GetCurrentVideoExtension(); // Save movie to file extractor.SaveCurrentVideoToFile(outputFileName); i++; } while (extractor.GetNextVideo()); // Advance movies enumeration } // Cleanup extractor.Dispose(); } } }

Try ByteScout PDF Extractor SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK page

Explore ByteScout PDF Extractor SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next