# PdfPageBoundaryBox

Standard PDF page boundary box names used by viewer preferences.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPageBoundaryBox.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageBoundaryBox.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Standard PDF page boundary box names used by viewer preferences.

## Inheritance

- Enum
- PdfPageBoundaryBox

## Usage

Explore 12 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 10

- Field [PdfPageBoundaryBox.ArtBox](/api/pdf/officeimo-pdf-pdfpageboundarybox/#field-artbox)
- Field [PdfPageBoundaryBox.BleedBox](/api/pdf/officeimo-pdf-pdfpageboundarybox/#field-bleedbox)
- Field [PdfPageBoundaryBox.CropBox](/api/pdf/officeimo-pdf-pdfpageboundarybox/#field-cropbox)
- Field [PdfPageBoundaryBox.MediaBox](/api/pdf/officeimo-pdf-pdfpageboundarybox/#field-mediabox)
- Field [PdfPageBoundaryBox.TrimBox](/api/pdf/officeimo-pdf-pdfpageboundarybox/#field-trimbox)
- Property [PdfProductionFixupProposal.Box](/api/pdf/officeimo-pdf-pdfproductionfixupproposal/#property-box)
- Property [PdfViewerPreferencesOptions.PrintArea](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/#property-printarea)
- Property [PdfViewerPreferencesOptions.PrintClip](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/#property-printclip)
- Property [PdfViewerPreferencesOptions.ViewArea](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/#property-viewarea)
- Property [PdfViewerPreferencesOptions.ViewClip](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/#property-viewclip)

### Accepted by parameters 2

- Method [PdfDocumentPages.SetPageBox](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-setpagebox-officeimo-pdf-pdfpageboundarybox-double-double-double-double-int32) parameter `box`
- Method [PdfPageAttributeEdit.SetBox](/api/pdf/officeimo-pdf-pdfpageattributeedit/#method-setbox-officeimo-pdf-pdfpageboundarybox-double-double-double-double-officeimo-pdf-pdfpageselection) parameter `box`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfPageBoundaryBox MediaBox` [#](#field-mediabox)

[PdfPageBoundaryBox.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageBoundaryBox.cs#L10)

Uses the page media box.

Value: `0`

`public const PdfPageBoundaryBox CropBox` [#](#field-cropbox)

[PdfPageBoundaryBox.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageBoundaryBox.cs#L15)

Uses the page crop box.

Value: `1`

`public const PdfPageBoundaryBox BleedBox` [#](#field-bleedbox)

[PdfPageBoundaryBox.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageBoundaryBox.cs#L20)

Uses the page bleed box.

Value: `2`

`public const PdfPageBoundaryBox TrimBox` [#](#field-trimbox)

[PdfPageBoundaryBox.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageBoundaryBox.cs#L25)

Uses the page trim box.

Value: `3`

`public const PdfPageBoundaryBox ArtBox` [#](#field-artbox)

[PdfPageBoundaryBox.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageBoundaryBox.cs#L30)

Uses the page art box.

Value: `4`

<!-- PowerForge markdown artifact sha256:EC619F5B91394432F071077087CD93BFB31B2899F2DB8C08DA1F1562203EEAC9 -->
