[]
The collection of OperatorBase objects.
public class OperatorList : List<OperatorBase>, IList<OperatorBase>, ICollection<OperatorBase>, IList, ICollection, IReadOnlyList<OperatorBase>, IReadOnlyCollection<OperatorBase>, IEnumerable<OperatorBase>, IEnumerable
public OperatorList()
Creates the OperatorList object from page's content stream.
public static OperatorList Build(Page page, RectangleF bounds, ViewState viewState, float dpiX, float dpiY, bool ignoreErrors, bool includeTextPosition)
page
PageThe Page object.
bounds
System.Drawing.RectangleFThe draw bounds.
viewState
ViewStateThe ViewState object.
dpiX
floatThe horizontal resolution.
dpiY
floatThe vertical resolution.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
includeTextPosition
boolIndicates whether to include information about position of text in content stream into PDF operators.
The created OperatorList object.
Creates the OperatorList object from page's content stream.
public static OperatorList Build(Page page, RectangleF bounds, ViewState viewState, float dpiX, float dpiY, bool ignoreErrors)
page
PageThe Page object.
bounds
System.Drawing.RectangleFThe draw bounds.
viewState
ViewStateThe ViewState object.
dpiX
floatThe horizontal resolution.
dpiY
floatThe vertical resolution.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
The created OperatorList object.
Creates the OperatorList object from page's content stream.
public static OperatorList Build(Page page, RectangleF bounds, float dpiX, float dpiY, bool ignoreErrors)
page
PageThe Page object.
bounds
System.Drawing.RectangleFThe draw bounds.
dpiX
floatThe horizontal resolution.
dpiY
floatThe vertical resolution.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
The created OperatorList object.
Creates the OperatorList object from page's content stream. The page bounds calculated using GetRenderSize(float, float) method.
public static OperatorList Build(Page page, float dpiX, float dpiY, bool ignoreErrors, bool includeTextPosition)
page
PageThe Page object.
dpiX
floatThe horizontal resolution.
dpiY
floatThe vertical resolution.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
includeTextPosition
boolIndicates whether to include information about position of text in content stream into PDF operators.
The created OperatorList object.
Creates the OperatorList object from page's content stream. The page bounds calculated using GetRenderSize(float, float) method.
public static OperatorList Build(Page page, float dpiX, float dpiY, bool ignoreErrors)
page
PageThe Page object.
dpiX
floatThe horizontal resolution.
dpiY
floatThe vertical resolution.
ignoreErrors
boolIndicates whether to ignore errors in PDF content stream during rendering.
The created OperatorList object.
Enumerates the list of operators, calls the callbackMethod
method for each
operator.
public static bool Enumerate(IList<OperatorBase> operators, Func<PdfOperatorPosition, OperatorBase, bool> callbackMethod)
operators
System.Collections.Generic.IList<T><OperatorBase>The list of operators to enumerate.
callbackMethod
System.Func<T1, T2, TResult><PdfOperatorPosition, OperatorBase, bool>The callback method.
true if all operators were enumerated; false if callback method returns false for some operator.
Returns the OperatorList object containing all operators of this OperatorList including nested operators of DoFormXObject.
public OperatorList Flat()
Fetches the OperatorList and the index in it for a specified PDF operator position.
public bool GetOperator(PdfOperatorPosition pop, out OperatorList ol, out int olIndex)
pop
PdfOperatorPositionThe PDF operator position.
ol
OperatorListOUT: The OperatorList containing operator with the specified index.
olIndex
intOUT: The index in ol
.
true if pop
defines a valid index and ol
and olIndex
contain valid values.