Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfPageAttributeEdit

OfficeIMO.Pdf

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

An immutable page-attribute edit for an atomic, ordered batch.

Inheritance

  • object
  • PdfPageAttributeEdit

Remarks

A null selection means every page. Edits never remove content from source streams.

Usage

Explore 6 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.

Accepted by parameters 1

Methods

public static PdfPageAttributeEdit CropMargins(double left, double bottom, double right, double top, PdfPageSelection? selection = null) #

Crops inward from the current displayed edges, using physical points (1/72 inch).

Parameters

left double required
bottom double required
right double required
top double required
selection OfficeIMO.Pdf.PdfPageSelection? = null optional
public static PdfPageAttributeEdit ResetCrop(PdfPageSelection? selection = null) #

Restores the visible crop to the current MediaBox without changing content.

Parameters

selection OfficeIMO.Pdf.PdfPageSelection? = null optional
public static PdfPageAttributeEdit RotateBy(int degrees, PdfPageSelection? selection = null) #

Turns each selected page clockwise by a multiple of 90 degrees relative to its effective rotation.

Parameters

degrees int required
selection OfficeIMO.Pdf.PdfPageSelection? = null optional
public static PdfPageAttributeEdit SetBox(PdfPageBoundaryBox box, double left, double bottom, double right, double top, PdfPageSelection? selection = null) #

Sets a boundary box in unrotated PDF user-space coordinates.

Parameters

box OfficeIMO.Pdf.PdfPageBoundaryBox required
left double required
bottom double required
right double required
top double required
selection OfficeIMO.Pdf.PdfPageSelection? = null optional
public static PdfPageAttributeEdit SetRotation(int degrees, PdfPageSelection? selection = null) #

Sets the absolute page rotation to a multiple of 90 degrees.

Parameters

degrees int required
selection OfficeIMO.Pdf.PdfPageSelection? = null optional

Properties

public PdfPageSelection? Selection { get; } #

Selected one-based pages, or null for every page.