PdfPageSelection
OfficeIMO.Pdf
Represents caller-ordered one-based PDF page selections.
Inheritance
- object
- PdfPageSelection
Usage
Explore 45 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 8
- Method OfficePageSelectorPdfExtensions.ResolveSelection
- Property PdfLoadOptions.PageSelection
- Property PdfPageAttributeEdit.Selection
- Method PdfPageSelection.From
- Method PdfPageSelection.FromRanges
- Method PdfPageSelection.Parse
- Property PdfProductionPreflightOptions.PageSelection
- Property PdfStaticFormRecognitionOptions.PageSelection
Accepted by parameters 37
- Method PdfDocumentImageEditor.Extract
- Method PdfDocumentImageEditor.Placements
- Method PdfDocumentPages.Append
- Method PdfDocumentPages.CropAndTranslate
- Method PdfDocumentPages.Delete
- Method PdfDocumentPages.DestructiveCrop
- Method PdfDocumentPages.Duplicate
- Method PdfDocumentPages.Extract
- Method PdfDocumentPages.ImposeBooklet
- Method PdfDocumentPages.ImposeNUp
- Method PdfDocumentPages.Insert
- Method PdfDocumentPages.Move
- Method PdfDocumentPages.NormalizeRotation
- Method PdfDocumentPages.Prepend
- Method PdfDocumentPages.Reorder
- Method PdfDocumentPages.ReorderWithMapping
- Method PdfDocumentPages.Resize
- Method PdfDocumentPages.Rotate
- Method PdfDocumentPages.RotateBy
- Method PdfDocumentPages.SetArtBox
- Method PdfDocumentPages.SetBleedBox
- Method PdfDocumentPages.SetCropBox
- Method PdfDocumentPages.SetMediaBox
- Method PdfDocumentPages.SetPageBox
- Method PdfDocumentPages.SetTrimBox
- Method PdfDocumentPages.Split
- Method PdfDocumentProof.CompareVisual
- Method PdfDocumentRenderer.Pages
- Method PdfDocumentResources.Fonts
- Method PdfPageAttributeEdit.CropMargins
- Method PdfPageAttributeEdit.ResetCrop
- Method PdfPageAttributeEdit.RotateBy
- Method PdfPageAttributeEdit.SetBox
- Method PdfPageAttributeEdit.SetRotation
- Method PdfPageSelection.Equals
- Method PdfPageSelection.TryParse
- Method PdfVisualComparer.Compare
Methods
public bool Equals(PdfPageSelection? other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Pdf.PdfPageSelection?
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Determines whether the specified object is equal to the current object.
Parameters
- obj object?
- The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.public static PdfPageSelection From(params int[] pageNumbers) #Creates a selection from one or more one-based page numbers.
Parameters
- pageNumbers int[]
Returns
PdfPageSelectionpublic static PdfPageSelection From(PdfPageRange pageRange) #Creates a selection from one inclusive one-based page range.
Parameters
- pageRange OfficeIMO.Pdf.PdfPageRange
Returns
PdfPageSelectionpublic static PdfPageSelection FromRanges(params PdfPageRange[] pageRanges) #Creates a selection from one or more inclusive one-based page ranges.
Parameters
- pageRanges OfficeIMO.Pdf.PdfPageRange[]
Returns
PdfPageSelectionpublic override int GetHashCode() #Serves as the default hash function.
Returns
int A hash code for the current object.public static PdfPageSelection Parse(string pageRanges) #Parses comma- or semicolon-separated one-based page ranges such as 1, 1-3, or 3,1-2.
Parameters
- pageRanges string
Returns
PdfPageSelectionpublic IReadOnlyList<int> Resolve(int pageCount) #Resolves this selection against a document page count, preserving caller order and repeated pages.
Parameters
- pageCount int
Returns
IReadOnlyList<int>public override string ToString() #Returns a string that represents the current object.
Returns
string A string that represents the current object.public static bool TryParse(string? pageRanges, out PdfPageSelection? selection) #Attempts to parse comma- or semicolon-separated one-based page ranges.
Parameters
- pageRanges string?
- selection OfficeIMO.Pdf.PdfPageSelection?
Returns
bool