API Reference

Class

PdfExtractedImage

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Represents an image XObject extracted from a parsed PDF page.

Inheritance

  • Object
  • PdfExtractedImage

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Properties

public Int32 PageNumber { get; } #

One-based page number containing the image resource.

public String ResourceName { get; } #

Image resource name from the page XObject dictionary.

public Int32 ObjectNumber { get; } #

PDF object number for the image stream, or 0 when the image is direct.

public Int32 Width { get; } #

Image width in pixels.

public Int32 Height { get; } #

Image height in pixels.

public Int32 BitsPerComponent { get; } #

Bits per color component.

public String ColorSpace { get; } #

PDF color space name when available.

public String Filter { get; } #

PDF filter name or names when available.

public Byte[] Bytes { get; } #

Extracted bytes. JPEG images are returned as JPEG files. Simple PNG-predictor Flate images, supported ImageMask stencil streams, color-key masked simple and Indexed streams, Decode-aware simple 8-bit DeviceGray/DeviceRGB/basic-converted DeviceCMYK streams, basic ICCBased N=1/3/4 streams, and Decode-aware Indexed palette streams are returned as PNG files when their filters are supported. JPEG images with PDF transparency masks can expose unresolved mask metadata when the JPEG payload is passed through without alpha conversion. Other supported image streams return their original encoded bytes.

public String FileExtension { get; } #

Suggested file extension, such as jpg or png, when the bytes are a complete image file.

public String MimeType { get; } #

Suggested MIME type when the bytes are a complete image file.

public Boolean IsImageFile { get; } #

True when Bytes is a complete image file rather than a raw PDF image stream.

public String TransparencyMaskKind { get; } #

PDF transparency mask kind attached to the image, such as soft-mask, color-key-mask, or explicit-mask-image.

public Boolean TransparencyMaskResolved { get; } #

True when the extracted image payload includes the PDF transparency mask semantics.

public Boolean HasTransparencyMask { get; } #

True when the source PDF image declared a transparency mask.

public Boolean HasUnresolvedTransparencyMask { get; } #

True when the source PDF image declared a transparency mask that is not represented by the extracted payload.

public Boolean IsImageMask { get; } #

True when this image came from a PDF /ImageMask stencil XObject.