# PdfPageAttributeEdit

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

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[PdfPageAttributeEdit.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L26)

**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.

### Returned or exposed by 5

- Method [PdfPageAttributeEdit.CropMargins](/api/pdf/officeimo-pdf-pdfpageattributeedit/#method-cropmargins-double-double-double-double-officeimo-pdf-pdfpageselection)
- Method [PdfPageAttributeEdit.ResetCrop](/api/pdf/officeimo-pdf-pdfpageattributeedit/#method-resetcrop-officeimo-pdf-pdfpageselection)
- Method [PdfPageAttributeEdit.RotateBy](/api/pdf/officeimo-pdf-pdfpageattributeedit/#method-rotateby-int32-officeimo-pdf-pdfpageselection)
- Method [PdfPageAttributeEdit.SetBox](/api/pdf/officeimo-pdf-pdfpageattributeedit/#method-setbox-officeimo-pdf-pdfpageboundarybox-double-double-double-double-officeimo-pdf-pdfpageselection)
- Method [PdfPageAttributeEdit.SetRotation](/api/pdf/officeimo-pdf-pdfpageattributeedit/#method-setrotation-int32-officeimo-pdf-pdfpageselection)

### Accepted by parameters 1

- Method [PdfDocumentPages.ApplyAttributes](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-applyattributes-officeimo-pdf-pdfpageattributeedit) parameter `edits`

Filter members 

Show inherited

## Methods

`public static PdfPageAttributeEdit CropMargins(double left, double bottom, double right, double top, PdfPageSelection? selection = null)` [#](#method-cropmargins-double-double-double-double-officeimo-pdf-pdfpageselection)

[PdfPageAttributeEdit.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L41)

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**

Returns

`PdfPageAttributeEdit`

`public static PdfPageAttributeEdit ResetCrop(PdfPageSelection? selection = null)` [#](#method-resetcrop-officeimo-pdf-pdfpageselection)

[PdfPageAttributeEdit.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L45)

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

Parameters

**selection OfficeIMO.Pdf.PdfPageSelection? = null optional**

Returns

`PdfPageAttributeEdit`

`public static PdfPageAttributeEdit RotateBy(int degrees, PdfPageSelection? selection = null)` [#](#method-rotateby-int32-officeimo-pdf-pdfpageselection)

[PdfPageAttributeEdit.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L30)

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**

Returns

`PdfPageAttributeEdit`

`public static PdfPageAttributeEdit SetBox(PdfPageBoundaryBox box, double left, double bottom, double right, double top, PdfPageSelection? selection = null)` [#](#method-setbox-officeimo-pdf-pdfpageboundarybox-double-double-double-double-officeimo-pdf-pdfpageselection)

[PdfPageAttributeEdit.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L35)

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**

Returns

`PdfPageAttributeEdit`

`public static PdfPageAttributeEdit SetRotation(int degrees, PdfPageSelection? selection = null)` [#](#method-setrotation-int32-officeimo-pdf-pdfpageselection)

[PdfPageAttributeEdit.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L26)

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

Parameters

**degrees int required**

**selection OfficeIMO.Pdf.PdfPageSelection? = null optional**

Returns

`PdfPageAttributeEdit`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfPageSelection? Selection { get; }` [#](#property-selection)

[PdfPageAttributeEdit.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfPageAttributeEdit.cs#L15)

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

<!-- PowerForge markdown artifact sha256:2117E116C9E6BEAFB0F82EE92E41F16017482170BE5653F70492F8D8F52AD106 -->
