Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfPageAttributeEdit

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 51b096f032dd 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 7 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 2

Methods

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

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

Parameters

left System.Double requiredposition: 0
bottom System.Double requiredposition: 1
right System.Double requiredposition: 2
top System.Double requiredposition: 3
selection OfficeIMO.Pdf.PdfPageSelection? = null optionalposition: 4
public static PdfPageAttributeEdit ResetCrop(PdfPageSelection? selection = null) #
Returns: PdfPageAttributeEdit

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

Parameters

selection OfficeIMO.Pdf.PdfPageSelection? = null optionalposition: 0
public static PdfPageAttributeEdit RotateBy(Int32 degrees, PdfPageSelection? selection = null) #
Returns: PdfPageAttributeEdit

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

Parameters

degrees System.Int32 requiredposition: 0
selection OfficeIMO.Pdf.PdfPageSelection? = null optionalposition: 1
public static PdfPageAttributeEdit SetBox(PdfPageBoundaryBox box, Double left, Double bottom, Double right, Double top, PdfPageSelection? selection = null) #
Returns: PdfPageAttributeEdit

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

Parameters

box OfficeIMO.Pdf.PdfPageBoundaryBox requiredposition: 0
left System.Double requiredposition: 1
bottom System.Double requiredposition: 2
right System.Double requiredposition: 3
top System.Double requiredposition: 4
selection OfficeIMO.Pdf.PdfPageSelection? = null optionalposition: 5
public static PdfPageAttributeEdit SetRotation(Int32 degrees, PdfPageSelection? selection = null) #
Returns: PdfPageAttributeEdit

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

Parameters

degrees System.Int32 requiredposition: 0
selection OfficeIMO.Pdf.PdfPageSelection? = null optionalposition: 1

Properties

public PdfPageSelection? Selection { get; } #

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