ParserGetImages Method |
Namespace: GroupDocs.Parser
The following example shows how to extract all images from the whole document:
// Create an instance of Parser class using (Parser parser = new Parser(filePath)) { // Extract images IEnumerable<PageImageArea> images = parser.GetImages(); // Check if images extraction is supported if (images == null) { Console.WriteLine("Images extraction isn't supported"); return; } // Iterate over images foreach (PageImageArea image in images) { // Print a page index, rectangle and image type: Console.WriteLine(string.Format("Page: {0}, R: {1}, Type: {2}", image.Page.Index, image.Rectangle, image.FileType)); } }