Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfImageDocumentSource

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
12511d2fa560 with working tree changes
Modifiers
sealed

One image source used to create a PDF page.

Inheritance

  • object
  • PdfImageDocumentSource

Usage

Explore 5 API references to this type

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

Returned or exposed by 1

Accepted by parameters 4

Constructors

public PdfImageDocumentSource(byte[] bytes, string? name = null) #

Creates an image source from an encoded image payload.

Parameters

bytes byte[] required
name string? = null optional

Methods

FromFile 2 overloads
public static PdfImageDocumentSource FromFile(string path) #

Creates an image source from a file snapshot.

Parameters

path string required
public static PdfImageDocumentSource FromFile(string path, long maximumEncodedImageBytes) #

Creates an image source from a file snapshot within an encoded-byte limit. Document creation applies its own limit.

Parameters

path string required
maximumEncodedImageBytes long required
public byte[] GetBytes() #

Returns a caller-owned copy of the encoded image payload.

Returns

byte[]

Properties

public string? Name { get; } #

Optional source name used as PDF alternate text.