API Reference
PdfDocumentImageEditor
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
- Property PdfDocument.Images
Methods
public PdfImageEditResult Add(PdfPageRegion target, Byte[] imageBytes, PdfImageEditOptions options = null, PdfReadOptions readOptions = null) #PdfImageEditResultAdds an image fitted to a page region.
Parameters
- target OfficeIMO.Pdf.PdfPageRegion
- imageBytes System.Byte[]
- options OfficeIMO.Pdf.PdfImageEditOptions = null
- readOptions OfficeIMO.Pdf.PdfReadOptions = null
public IReadOnlyList<PdfImagePlacement> Find(PdfPageRegion region, PdfReadOptions readOptions = null) #IReadOnlyList<PdfImagePlacement>Returns image placements whose page-space bounds intersect a region.
Parameters
- region OfficeIMO.Pdf.PdfPageRegion
- readOptions OfficeIMO.Pdf.PdfReadOptions = null
public PdfImageEditResult Move(PdfImagePlacement placement, Double deltaX, Double deltaY, PdfImageEditOptions options = null, PdfReadOptions readOptions = null) #PdfImageEditResultMoves 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
- deltaX System.Double
- deltaY System.Double
- options OfficeIMO.Pdf.PdfImageEditOptions = null
- readOptions OfficeIMO.Pdf.PdfReadOptions = null
public IReadOnlyList<PdfImagePlacement> Placements(PdfReadOptions readOptions = null) #IReadOnlyList<PdfImagePlacement>Returns every image placement invocation in page paint order.
Parameters
- readOptions OfficeIMO.Pdf.PdfReadOptions = null
public PdfImageEditResult Remove(PdfImagePlacement placement, PdfReadOptions readOptions = null) #PdfImageEditResultRemoves one exact image placement without removing text, paths, annotations, or other overlapping images.
Parameters
- placement OfficeIMO.Pdf.PdfImagePlacement
- readOptions OfficeIMO.Pdf.PdfReadOptions = null
public PdfImageEditResult Replace(PdfImagePlacement placement, Byte[] imageBytes, PdfImageEditOptions options = null, PdfReadOptions readOptions = null) #PdfImageEditResultReplaces 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
- imageBytes System.Byte[]
- options OfficeIMO.Pdf.PdfImageEditOptions = null
- readOptions OfficeIMO.Pdf.PdfReadOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object