Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfImageDocumentSource

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

One image source used to create a PDF page.

Inheritance

  • Object
  • PdfImageDocumentSource

Usage

Explore 2 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 1

Constructors

public PdfImageDocumentSource(Byte[] bytes, String? name = null) #

Creates an image source from an encoded image payload.

Parameters

bytes System.Byte[] requiredposition: 0
name System.String? = null optionalposition: 1

Methods

FromFile 2 overloads
public static PdfImageDocumentSource FromFile(String path) #
Returns: PdfImageDocumentSource

Creates an image source from a file snapshot.

Parameters

path System.String requiredposition: 0
public static PdfImageDocumentSource FromFile(String path, Int64 maximumEncodedImageBytes) #
Returns: PdfImageDocumentSource

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

Parameters

path System.String requiredposition: 0
maximumEncodedImageBytes System.Int64 requiredposition: 1
public Byte[] GetBytes() #
Returns: Byte[]

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

Properties

public String? Name { get; } #

Optional source name used as PDF alternate text.