//// This code is part of Document Solutions for PDF .NET demos.// Copyright (c) MESCIUS inc. All rights reserved.//usingSystem.IO;usingGrapeCity.Documents.Pdf; namespaceDsPdfWeb.Demos{// This demo shows how to remove all images from a PDF using the GcPdfDocument.RemoveImages() method.publicclassRemoveAllImages {publicintCreatePDF(Stream stream) {usingvar fs = File.OpenRead(Path.Combine("Resources", "PDFs", "Wetlands.pdf"));var doc= newGcPdfDocument(); doc.Load(fs);// Get the list of images in the document: var imageInfos = doc.GetImages();// Remove all images: doc.RemoveImages(imageInfos);// Done: doc.Save(stream);return doc.Pages.Count; } }}