[SerializableAttribute()]public struct PDFImage
public class PDFImage [SerializableAttribute()]public value class PDFImage : public System.ValueType
class PDFImage: using Leadtools;using Leadtools.Codecs;using Leadtools.Controls;using Leadtools.Pdf;using Leadtools.Svg;using Leadtools.WinForms;public void PDFDocumentImagesExample(){string pdfFileName = Path.Combine(LEAD_VARS.ImagesDir, @"Leadtools.pdf");string txtFileName = Path.Combine(LEAD_VARS.ImagesDir, @"LEAD_pdfImageInfo.txt");// Save the results to the text file for examiningusing (StreamWriter writer = File.CreateText(txtFileName))using (PDFDocument document = new PDFDocument(pdfFileName)){// Look for image objects within the PDFdocument.ParseDocumentStructure(PDFParseDocumentStructureOptions.Images);// Output information about each imageforeach (PDFImage pdfImage in document.Images)WritePdfImageProperties(writer, pdfImage);}}public void WritePdfImageProperties(StreamWriter writer, PDFImage image){writer.WriteLine("PDFImage.PageNumber: {0}", image.PageNumber.ToString());writer.WriteLine(" PDFImage.ObjectNumber: {0}", image.ObjectNumber.ToString());writer.WriteLine(" PDFImage.ColorDevice: {0}", image.ColorDevice.ToString());writer.WriteLine(" PDFImage.StreamOffset: {0}", image.StreamOffset.ToString());writer.WriteLine(" PDFImage.StreamLength: {0}", image.StreamLength.ToString());writer.WriteLine(" PDFImage.BitsPerComponent: {0}", image.BitsPerComponent.ToString());writer.WriteLine(" PDFImage.ComponentCount: {0}", image.ComponentCount.ToString());writer.WriteLine(" PDFImage.BitsPerPixel: {0}", image.BitsPerPixel.ToString());writer.WriteLine(" PDFImage.Width: {0}", image.Width.ToString());writer.WriteLine(" PDFImage.Height: {0}", image.Height.ToString());writer.WriteLine(" PDFImage.ImageType: {0}", image.ImageType.ToString());}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
