'''' This code is part of Document Solutions for PDF .NET demos.'' Copyright (c) MESCIUS inc. All rights reserved.''ImportsSystem.IOImportsGrapeCity.Documents.Pdf PublicClassRemoveAllImagesPublicFunctionCreatePDF(ByVal stream AsStream) AsIntegerUsing fs = File.OpenRead(Path.Combine("Resources", "PDFs", "Wetlands.pdf"))Dim doc = NewGcPdfDocument() doc.Load(fs)' Get the list of images in the document:Dim imageInfos = doc.GetImages()' Remove all images: doc.RemoveImages(imageInfos)'' Done: doc.Save(stream)Return doc.Pages.CountEndUsingEndFunctionEndClass