API Reference

Class

PdfDocumentImageEditor

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Finds and edits image placements on existing PDF pages.

Inheritance

  • Object
  • PdfDocumentImageEditor

Usage

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

Returned or exposed by

Methods

public PdfImageEditResult Add(PdfPageRegion target, Byte[] imageBytes, PdfImageEditOptions options = null, PdfLoadOptions readOptions = null) #
Returns: PdfImageEditResult

Adds an image fitted to a page region.

Parameters

target OfficeIMO.Pdf.PdfPageRegion requiredposition: 0
imageBytes System.Byte[] requiredposition: 1
options OfficeIMO.Pdf.PdfImageEditOptions = null optionalposition: 2
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 3
Extract 4 overloads
public IReadOnlyList<PdfExtractedImage> Extract(PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfExtractedImage>

Extracts every unique embedded image XObject in page order.

Parameters

readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 0
public IReadOnlyList<PdfExtractedImage> Extract(PdfPageSelection selection, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfExtractedImage>

Extracts embedded images referenced by a caller-ordered page selection.

Parameters

selection OfficeIMO.Pdf.PdfPageSelection requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public IReadOnlyList<PdfExtractedImage> Extract(String pageRanges, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfExtractedImage>

Extracts embedded images referenced by parsed one-based page ranges.

Parameters

pageRanges System.String requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public IReadOnlyList<PdfExtractedImage> Extract(PdfPageSelector selector, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfExtractedImage>

Extracts embedded images referenced by a document-relative page selector.

Parameters

selector OfficeIMO.Pdf.PdfPageSelector requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public PdfOperationResult<IReadOnlyList<PdfExtractedImage>> ExtractResult(PdfLoadOptions readOptions = null) #
Returns: PdfOperationResult<IReadOnlyList<PdfExtractedImage>>

Attempts to extract images, returning preflight diagnostics when blocked or failed.

Parameters

readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 0
public IReadOnlyList<PdfImagePlacement> Find(PdfPageRegion region, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfImagePlacement>

Returns image placements whose page-space bounds intersect a region.

Parameters

region OfficeIMO.Pdf.PdfPageRegion requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public PdfImageEditResult Move(PdfImagePlacement placement, Double deltaX, Double deltaY, PdfImageEditOptions options = null, PdfLoadOptions readOptions = null) #
Returns: PdfImageEditResult

Moves one exact image placement by a PDF user-space offset. The source payload, portable size, and rotation are preserved; the selected Layer controls its new page-content layer.

Parameters

placement OfficeIMO.Pdf.PdfImagePlacement requiredposition: 0
deltaX System.Double requiredposition: 1
deltaY System.Double requiredposition: 2
options OfficeIMO.Pdf.PdfImageEditOptions = null optionalposition: 3
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 4
Placements 4 overloads
public IReadOnlyList<PdfImagePlacement> Placements(PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfImagePlacement>

Returns every image placement invocation in page paint order.

Parameters

readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 0
public IReadOnlyList<PdfImagePlacement> Placements(PdfPageSelection selection, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfImagePlacement>

Returns image placements referenced by a caller-ordered page selection.

Parameters

selection OfficeIMO.Pdf.PdfPageSelection requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public IReadOnlyList<PdfImagePlacement> Placements(String pageRanges, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfImagePlacement>

Returns image placements referenced by parsed one-based page ranges.

Parameters

pageRanges System.String requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public IReadOnlyList<PdfImagePlacement> Placements(PdfPageSelector selector, PdfLoadOptions readOptions = null) #
Returns: IReadOnlyList<PdfImagePlacement>

Returns image placements referenced by a document-relative page selector.

Parameters

selector OfficeIMO.Pdf.PdfPageSelector requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public PdfOperationResult<IReadOnlyList<PdfImagePlacement>> PlacementsResult(PdfLoadOptions readOptions = null) #
Returns: PdfOperationResult<IReadOnlyList<PdfImagePlacement>>

Attempts to inspect image placements, returning preflight diagnostics when blocked or failed.

Parameters

readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 0
public PdfImageEditResult Remove(PdfImagePlacement placement, PdfLoadOptions readOptions = null) #
Returns: PdfImageEditResult

Removes one exact image placement without removing text, paths, annotations, or other overlapping images.

Parameters

placement OfficeIMO.Pdf.PdfImagePlacement requiredposition: 0
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 1
public PdfImageEditResult Replace(PdfImagePlacement placement, Byte[] imageBytes, PdfImageEditOptions options = null, PdfLoadOptions readOptions = null) #
Returns: PdfImageEditResult

Replaces one exact image placement while preserving portable position, size, and rotation. The selected Layer controls its new relation to existing page content.

Parameters

placement OfficeIMO.Pdf.PdfImagePlacement requiredposition: 0
imageBytes System.Byte[] requiredposition: 1
options OfficeIMO.Pdf.PdfImageEditOptions = null optionalposition: 2
readOptions OfficeIMO.Pdf.PdfLoadOptions = null optionalposition: 3