PdfPageAttributeEdit
OfficeIMO.Pdf
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
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
- bottom double
- right double
- top double
- selection OfficeIMO.Pdf.PdfPageSelection? = null
Returns
PdfPageAttributeEditpublic static PdfPageAttributeEdit ResetCrop(PdfPageSelection? selection = null) #Restores the visible crop to the current MediaBox without changing content.
Parameters
- selection OfficeIMO.Pdf.PdfPageSelection? = null
Returns
PdfPageAttributeEditpublic 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
- selection OfficeIMO.Pdf.PdfPageSelection? = null
Returns
PdfPageAttributeEditpublic 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
- left double
- bottom double
- right double
- top double
- selection OfficeIMO.Pdf.PdfPageSelection? = null
Returns
PdfPageAttributeEditpublic static PdfPageAttributeEdit SetRotation(int degrees, PdfPageSelection? selection = null) #Sets the absolute page rotation to a multiple of 90 degrees.
Parameters
- degrees int
- selection OfficeIMO.Pdf.PdfPageSelection? = null
Returns
PdfPageAttributeEditInherited Methods
Properties
public PdfPageSelection? Selection { get; } #Selected one-based pages, or null for every page.