ByteScout simple and easy to understand tutorials are planned to describe the code for both C# beginners and advanced programmers. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can be applied to extract audio from PDF with PDF extractor SDK using C#.
Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for C# plus the guidelines and the code below will help you quickly learn how to extract audio from PDF with PDF extractor SDK. Follow the instructions from scratch to work and copy the C# code. Further improvement of the code will make it more robust.
The trial version of ByteScout PDF Suite can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using Bytescout.PDFExtractor; namespace ExtractAudio { 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-audio.pdf"); int i = 0; // Initialize sound clips enumeration if (extractor.GetFirstAudio()) { do { string outputFileName = "audio" + i + extractor.GetCurrentAudioExtension(); // Save sound clip to file extractor.SaveCurrentAudioToFile(outputFileName); i++; } while (extractor.GetNextAudio()); // Advance sounds enumeration } // Cleanup extractor.Dispose(); } } }
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: