Inherits Aspose::Pdf::BaseOperatorCollection.

Public Member Functions

virtual bool get_IsReadOnly () const
 Gets a value indicating whether the collection is read-only. More...
 
virtual int32_t get_Count () const
 Gets count of operators in the collection. More...
 
virtual bool get_IsFastTextExtractionMode () const
 Indicates wheather collection is limited to fast text extraction More...
 
virtual void CopyTo (System::ArrayPtr< System::SharedPtr< Operator >> array, int32_t index)
 Copies operators into operators list. More...
 
virtual System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Operator > > > GetEnumerator ()
 Returns enumerator for collection More...
 
void Accept (System::SharedPtr< IOperatorSelector > visitor)
 Accepts IOperatorSelector visitor object to process operators. More...
 
virtual void Add (System::SharedPtr< Operator > const &op)
 Adds new operator into collection. More...
 
void Delete (int32_t index)
 Deletes operator from collection. More...
 
virtual void Insert (int32_t index, System::SharedPtr< Operator > op)
 Inserts operator into collection. More...
 
void Replace (System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> operators)
 Replace operators in collection with other operators. More...
 
void Add (System::ArrayPtr< System::SharedPtr< Operator >> const &ops)
 Add operators at the end of the contents operators. More...
 
void Insert (int32_t at, System::ArrayPtr< System::SharedPtr< Operator >> ops)
 Insert operators at the the given position. More...
 
virtual System::SharedPtr< Operatoridx_get (int32_t index)
 Gets operator by its index. More...
 
virtual void idx_set (int32_t index, System::SharedPtr< Operator > value)
 Gets operator by its index. More...
 
void Delete (System::ArrayPtr< System::SharedPtr< Operator >> ops)
 Deletes operators from collection. More...
 
void Delete (System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> list)
 Deletes operators from collection. More...
 
void Insert (int32_t at, System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> ops)
 Insert operators at the the given position. More...
 
virtual void Clear ()
 Removes all operators from list. More...
 
virtual System::String ToString ()
 Returns text representation of the operator. More...
 
void Add (System::SharedPtr< System::Collections::Generic::ICollection< System::SharedPtr< Operator >>> const &ops)
 Adds to collection all operators from other collection. More...
 
virtual void SuppressUpdate ()
 Suppresses update contents data. The contents stream is not updated until ResumeUpdate is called. More...
 
virtual void ResumeUpdate ()
 Resumes document update. Updates contents stream in case there are any pending changes. More...
 
virtual void CancelUpdate ()
 Cancels last update. This method may be called when the change should not raise contents update. More...
 
virtual bool Remove (System::SharedPtr< Operator > const &op)
 Remove operator from the collection. More...
 
virtual bool Contains (System::SharedPtr< Operator > const &op) const
 Returns true if the collection contains given operator. More...
 
- Public Member Functions inherited from System::Collections::Generic::ICollection< System::SharedPtr< Aspose::Pdf::Operator > >
virtual void CopyTo (System::ArrayPtr< System::SharedPtr< Aspose::Pdf::Operator > > array, int arrayIndex)=0
 
ICollectionoperator= (ICollection &&)
 
ICollectionoperator= (const ICollection &)
 
 ICollection ()
 Default constructor. More...
 
 ICollection (const ICollection &)
 Copy constructor. More...
 
 ICollection (ICollection &&)
 Move constructor. More...
 
virtual ~ICollection ()
 Destructor. More...
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Pdf::Operator > >
System::SharedPtr< Aspose::Pdf::OperatorLINQ_ElementAt (int index)
 
System::SharedPtr< Aspose::Pdf::OperatorLINQ_First ()
 
System::SharedPtr< Aspose::Pdf::OperatorLINQ_FirstOrDefault ()
 
System::SharedPtr< Aspose::Pdf::OperatorLINQ_FirstOrDefault (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate)
 
System::SharedPtr< Aspose::Pdf::OperatorLINQ_Last ()
 
System::SharedPtr< Aspose::Pdf::OperatorLINQ_LastOrDefault ()
 
SharedPtr< List< System::SharedPtr< Aspose::Pdf::Operator > > > LINQ_ToList ()
 
int LINQ_Count ()
 
System::ArrayPtr< System::SharedPtr< Aspose::Pdf::Operator > > LINQ_ToArray ()
 
bool LINQ_All (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate)
 
bool LINQ_Any ()
 
bool LINQ_Any (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate)
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Pdf::Operator > > > LINQ_Where (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate)
 
bool LINQ_Contains (System::SharedPtr< Aspose::Pdf::Operator > value)
 
SharedPtr< IEnumerable< ResultType > > LINQ_Cast ()
 
SharedPtr< IEnumerable< Result > > LINQ_Cast ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_OfType ()
 
SharedPtr< IEnumerable< Result > > LINQ_OfType ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< System::SharedPtr< Aspose::Pdf::Operator >, ResultType > &selector)
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, Result > &selector)
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

bool get_IsReadOnlyMode () const
 
void set_IsReadOnlyMode (bool value)
 
System::SharedPtr< Engine::Data::IPdfPrimitive > get_Contents () const
 
System::SharedPtr< Aspose::src::CommonData::PageContent::Operators::Commands::CommandsList > get_CommandList () const
 
bool get_IsCommandsParsed ()
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > get_Commands () const
 
void set_Commands (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> value)
 
virtual void set_IsFastTextExtractionMode (bool value)
 Indicates wheather collection is limited to fast text extraction More...
 
bool get_IsBracketed ()
 Gets bracketed status of operator sequence i.e. is this operators are inside of q - Q blocks More...
 
bool get_IsUpdateSuppressed ()
 
virtual System::SharedPtr< Engine::Data::ITrailerable > get_Trailerable ()
 
void ParseContents () const
 
void SetData (System::ArrayPtr< uint8_t > data)
 
void SetData (System::SharedPtr< Engine::Data::IPdfPrimitive > data)
 
System::ArrayPtr< uint8_t > ReadStreamData (System::SharedPtr< Engine::Data::IPdfDataStream > src)
 
void SetStreamData (System::SharedPtr< Engine::Data::IPdfDataStream > src)
 
void SetStreamData (System::SharedPtr< Engine::Data::IPdfArray > src)
 
void SetArrayData (System::SharedPtr< Engine::Data::IPdfArray > src)
 
virtual void UpdateData ()
 Update object stream. More...
 
void Reindex ()
 Update indexes of operators. This required when operators were inserted/deleted. If we dont reindex, incorect indexes may cause fault when we're trying to delete operator by its index. Example: PDFNEWNET-33455. More...
 
 OperatorCollection (System::SharedPtr< Engine::Data::IPdfPrimitive > contents)
 Constructor of OperatorCollection. Constructs operators from primitive contains operators list. More...
 
 OperatorCollection (System::SharedPtr< Engine::Data::ITrailerable > trailerable, System::SharedPtr< Engine::Data::IPdfPrimitive > contents)
 Constructor of OperatorCollection. Constructs operators from primitive contains operators list. More...
 
void UnRegisterEvents ()
 Unregisters events More...
 
virtual void DeleteUnrestricted (int32_t index)
 internal unrestricted version of Delete(index) More...
 
virtual System::SharedPtr< OperatorGetUnrestricted (int32_t index)
 internal unrestricted version of indexer More...
 
virtual System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > ToList ()
 Returns opetator list. More...
 
void Resync ()
 
void FreeMem ()
 
virtual ~OperatorCollection ()
 
- Protected Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Pdf::Operator > >
 ~IEnumerable () override
 Destructor. More...
 

Protected Attributes

bool RequiresReindex
 
System::SharedPtr< Engine::Data::IPdfPrimitive > contents
 PDF primitive which contains operators list. More...
 

Additional Inherited Members

- Public Types inherited from System::Collections::Generic::ICollection< System::SharedPtr< Aspose::Pdf::Operator > >
typedef System::SharedPtr< Aspose::Pdf::OperatorValueType
 Value type name. More...
 
typedef ICollection< System::SharedPtr< Aspose::Pdf::Operator > > ThisType
 Collection type name. More...
 
- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Pdf::Operator > >
typedef IEnumerator< System::SharedPtr< Aspose::Pdf::Operator > > IEnumeratorType
 Enumerator type. More...
 
using ValueType = System::SharedPtr< Aspose::Pdf::Operator >
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Constructor & Destructor Documentation

◆ OperatorCollection() [1/2]

Aspose::Pdf::OperatorCollection::OperatorCollection ( System::SharedPtr< Engine::Data::IPdfPrimitive >  contents)
protected

Constructor of OperatorCollection. Constructs operators from primitive contains operators list.

Parameters
contents

◆ OperatorCollection() [2/2]

Aspose::Pdf::OperatorCollection::OperatorCollection ( System::SharedPtr< Engine::Data::ITrailerable >  trailerable,
System::SharedPtr< Engine::Data::IPdfPrimitive >  contents 
)
protected

Constructor of OperatorCollection. Constructs operators from primitive contains operators list.

Parameters
trailerable
contents

◆ ~OperatorCollection()

virtual Aspose::Pdf::OperatorCollection::~OperatorCollection ( )
protectedvirtual

Member Function Documentation

◆ Accept()

void Aspose::Pdf::OperatorCollection::Accept ( System::SharedPtr< IOperatorSelector visitor)

Accepts IOperatorSelector visitor object to process operators.

Parameters
visitorVisitor object

◆ Add() [1/3]

virtual void Aspose::Pdf::OperatorCollection::Add ( System::SharedPtr< Operator > const &  op)
virtual

Adds new operator into collection.

Parameters
opOperator which must be added

Example demonstrates how to add operators to the end of page.contents.

Document doc = new Document("input.pdf");
doc.Pages[1].Contents.Add(new Aspose.Pdf.Operators.q());
doc.Pages[1].Contents.Add(new Aspose.Pdf.Operators.Q());

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Add() [2/3]

void Aspose::Pdf::OperatorCollection::Add ( System::ArrayPtr< System::SharedPtr< Operator >> const &  ops)

Add operators at the end of the contents operators.

Parameters
opsArray of operators to be added. Each operator can have any index (by default -1) because they come to the end of the contents operators i.e. indices are assigned automatically.

Example demonstrates how to add operator to the end of page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Add(new Operator[] { new Aspose.Pdf.Operators.q(), new Aspose.Pdf.Operators.Q() } );

◆ Add() [3/3]

void Aspose::Pdf::OperatorCollection::Add ( System::SharedPtr< System::Collections::Generic::ICollection< System::SharedPtr< Operator >>> const &  ops)

Adds to collection all operators from other collection.

Parameters
opscollection whitch contains operators which will be added.

Example demonstrates how to add operator collection to the page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
List<Operator> opList = new List<Operator>();
opList.Add(new AOperator.q());
opList.Add(new Operators.Q());
oc.Add(opList);

◆ CancelUpdate()

virtual void Aspose::Pdf::OperatorCollection::CancelUpdate ( )
virtual

Cancels last update. This method may be called when the change should not raise contents update.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Clear()

virtual void Aspose::Pdf::OperatorCollection::Clear ( )
virtual

Removes all operators from list.

Example demonstrates how to clear page contents.

Document doc = new Document("input.pdf");
doc.Pages[1].Clear();

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Contains()

virtual bool Aspose::Pdf::OperatorCollection::Contains ( System::SharedPtr< Operator > const &  op) const
virtual

Returns true if the collection contains given operator.

Parameters
op
Returns

Implements Aspose::Pdf::BaseOperatorCollection.

◆ CopyTo()

virtual void Aspose::Pdf::OperatorCollection::CopyTo ( System::ArrayPtr< System::SharedPtr< Operator >>  array,
int32_t  index 
)
virtual

Copies operators into operators list.

Parameters
arrayArray with operators which must to be copied. This array must be Object[] or Operator[].
indexStarting index from which operators will be copied

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Delete() [1/3]

void Aspose::Pdf::OperatorCollection::Delete ( int32_t  index)

Deletes operator from collection.

Parameters
indexIndex of operator which must be deleted. Operators numbering starts from 1.

Example demonstrates how to delete operator by its index.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Delete(3);

◆ Delete() [2/3]

void Aspose::Pdf::OperatorCollection::Delete ( System::ArrayPtr< System::SharedPtr< Operator >>  ops)

Deletes operators from collection.

Parameters
opsArray of operators to delete

Example demonstrates how to remove operator from page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Delete(new Operator[] { oc[1] } );

◆ Delete() [3/3]

void Aspose::Pdf::OperatorCollection::Delete ( System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>>  list)

Deletes operators from collection.

Parameters
listThe list of operators to delete

Example demonstrates how to remove operator from page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
List<Operator> opList = new List<Operator>();
opList.Add(oc[1]);
oc.Delete(opList);

◆ DeleteUnrestricted()

virtual void Aspose::Pdf::OperatorCollection::DeleteUnrestricted ( int32_t  index)
protectedvirtual

internal unrestricted version of Delete(index)

Implements Aspose::Pdf::BaseOperatorCollection.

◆ FreeMem()

void Aspose::Pdf::OperatorCollection::FreeMem ( )
protected

◆ get_CommandList()

System::SharedPtr<Aspose::src::CommonData::PageContent::Operators::Commands::CommandsList> Aspose::Pdf::OperatorCollection::get_CommandList ( ) const
protected

◆ get_Commands()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator> > > Aspose::Pdf::OperatorCollection::get_Commands ( ) const
protected

◆ get_Contents()

System::SharedPtr<Engine::Data::IPdfPrimitive> Aspose::Pdf::OperatorCollection::get_Contents ( ) const
protected

◆ get_Count()

virtual int32_t Aspose::Pdf::OperatorCollection::get_Count ( ) const
virtual

Gets count of operators in the collection.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ get_IsBracketed()

bool Aspose::Pdf::OperatorCollection::get_IsBracketed ( )
protected

Gets bracketed status of operator sequence i.e. is this operators are inside of q - Q blocks

◆ get_IsCommandsParsed()

bool Aspose::Pdf::OperatorCollection::get_IsCommandsParsed ( )
protected

◆ get_IsFastTextExtractionMode()

virtual bool Aspose::Pdf::OperatorCollection::get_IsFastTextExtractionMode ( ) const
virtual

Indicates wheather collection is limited to fast text extraction

Implements Aspose::Pdf::BaseOperatorCollection.

◆ get_IsReadOnly()

virtual bool Aspose::Pdf::OperatorCollection::get_IsReadOnly ( ) const
virtual

Gets a value indicating whether the collection is read-only.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ get_IsReadOnlyMode()

bool Aspose::Pdf::OperatorCollection::get_IsReadOnlyMode ( ) const
protected

◆ get_IsUpdateSuppressed()

bool Aspose::Pdf::OperatorCollection::get_IsUpdateSuppressed ( )
protected

◆ get_Trailerable()

virtual System::SharedPtr<Engine::Data::ITrailerable> Aspose::Pdf::OperatorCollection::get_Trailerable ( )
protectedvirtual

◆ GetEnumerator()

virtual System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Operator> > > Aspose::Pdf::OperatorCollection::GetEnumerator ( )
virtual

Returns enumerator for collection

Returns
Collection enumerator

Implements Aspose::Pdf::BaseOperatorCollection.

◆ GetUnrestricted()

virtual System::SharedPtr<Operator> Aspose::Pdf::OperatorCollection::GetUnrestricted ( int32_t  index)
protectedvirtual

internal unrestricted version of indexer

Implements Aspose::Pdf::BaseOperatorCollection.

◆ idx_get()

virtual System::SharedPtr<Operator> Aspose::Pdf::OperatorCollection::idx_get ( int32_t  index)
virtual

Gets operator by its index.

Parameters
indexIndex of operator. Numbering is starts from 1.
Returns
Operator from requested index

Example demonstrates how to get operator of page contents by index.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
Operator first = oc[1];

Implements Aspose::Pdf::BaseOperatorCollection.

◆ idx_set()

virtual void Aspose::Pdf::OperatorCollection::idx_set ( int32_t  index,
System::SharedPtr< Operator value 
)
virtual

Gets operator by its index.

Parameters
indexIndex of operator. Numbering is starts from 1.
valueOperator from requested index

Example demonstrates how to get operator of page contents by index.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
Operator first = oc[1];

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Insert() [1/3]

virtual void Aspose::Pdf::OperatorCollection::Insert ( int32_t  index,
System::SharedPtr< Operator op 
)
virtual

Inserts operator into collection.

Parameters
indexIndex where new operator must be added
opOperator which will be insterted

Example demonstrates how to insert operator to the page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Insert(1, new Aspose.Pdf.Operators.q());
oc.Add(new Aspose.Pdf.Operators.Q());

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Insert() [2/3]

void Aspose::Pdf::OperatorCollection::Insert ( int32_t  at,
System::ArrayPtr< System::SharedPtr< Operator >>  ops 
)

Insert operators at the the given position.

Parameters
atIndex from which operators are being started to insert.
opsArray of operators to be inserted. Each operator can have any index (by default -1) because their indices adjusted automatically starting from at .

Example demonstrates how to insert operator to the page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
oc.Insert(1, new Operator[] { new Aspose.Pdf.Operators.q(), new Aspose.Pdf.Operators.Q() } );

◆ Insert() [3/3]

void Aspose::Pdf::OperatorCollection::Insert ( int32_t  at,
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>>  ops 
)

Insert operators at the the given position.

Parameters
atIndex from which operators are being started to insert.
opsArray of operators to be inserted.

Example demonstrates how to insert operators to page contents.

Document doc = new Document("input.pdf");
OperatorCollection oc = doc.Pages[1].Contents;
List<Operator> opList = new List<Operator>();
opList.Add(new Operators.q());
opList.Add(new Operators.Q());
oc.Insert(1, opList);

◆ ParseContents()

void Aspose::Pdf::OperatorCollection::ParseContents ( ) const
protected

◆ ReadStreamData()

System::ArrayPtr<uint8_t> Aspose::Pdf::OperatorCollection::ReadStreamData ( System::SharedPtr< Engine::Data::IPdfDataStream >  src)
protected

◆ Reindex()

void Aspose::Pdf::OperatorCollection::Reindex ( )
protected

Update indexes of operators. This required when operators were inserted/deleted. If we dont reindex, incorect indexes may cause fault when we're trying to delete operator by its index. Example: PDFNEWNET-33455.

◆ Remove()

virtual bool Aspose::Pdf::OperatorCollection::Remove ( System::SharedPtr< Operator > const &  op)
virtual

Remove operator from the collection.

Parameters
opOperator to be removed.
Returns
True if operator was found and removed. False if operator did not belong to the collection.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Replace()

void Aspose::Pdf::OperatorCollection::Replace ( System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>>  operators)

Replace operators in collection with other operators.

Parameters
operatorsOperators list which will replace operators currently contained in the collection. Eash operator from the list must have correct index in range [1..N] where N is count of operators in the collection

◆ ResumeUpdate()

virtual void Aspose::Pdf::OperatorCollection::ResumeUpdate ( )
virtual

Resumes document update. Updates contents stream in case there are any pending changes.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ Resync()

void Aspose::Pdf::OperatorCollection::Resync ( )
protected

◆ set_Commands()

void Aspose::Pdf::OperatorCollection::set_Commands ( System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>>  value)
protected

◆ set_IsFastTextExtractionMode()

virtual void Aspose::Pdf::OperatorCollection::set_IsFastTextExtractionMode ( bool  value)
protectedvirtual

Indicates wheather collection is limited to fast text extraction

Implements Aspose::Pdf::BaseOperatorCollection.

◆ set_IsReadOnlyMode()

void Aspose::Pdf::OperatorCollection::set_IsReadOnlyMode ( bool  value)
protected

◆ SetArrayData()

void Aspose::Pdf::OperatorCollection::SetArrayData ( System::SharedPtr< Engine::Data::IPdfArray >  src)
protected

◆ SetData() [1/2]

void Aspose::Pdf::OperatorCollection::SetData ( System::ArrayPtr< uint8_t >  data)
protected

◆ SetData() [2/2]

void Aspose::Pdf::OperatorCollection::SetData ( System::SharedPtr< Engine::Data::IPdfPrimitive >  data)
protected

◆ SetStreamData() [1/2]

void Aspose::Pdf::OperatorCollection::SetStreamData ( System::SharedPtr< Engine::Data::IPdfDataStream >  src)
protected

◆ SetStreamData() [2/2]

void Aspose::Pdf::OperatorCollection::SetStreamData ( System::SharedPtr< Engine::Data::IPdfArray >  src)
protected

◆ SuppressUpdate()

virtual void Aspose::Pdf::OperatorCollection::SuppressUpdate ( )
virtual

Suppresses update contents data. The contents stream is not updated until ResumeUpdate is called.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ ToList()

virtual System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator> > > Aspose::Pdf::OperatorCollection::ToList ( )
protectedvirtual

Returns opetator list.

Returns
opetator list.

Implements Aspose::Pdf::BaseOperatorCollection.

◆ ToString()

virtual System::String Aspose::Pdf::OperatorCollection::ToString ( )
virtual

Returns text representation of the operator.

Returns
Text representation of operator.

◆ UnRegisterEvents()

void Aspose::Pdf::OperatorCollection::UnRegisterEvents ( )
protected

Unregisters events

◆ UpdateData()

virtual void Aspose::Pdf::OperatorCollection::UpdateData ( )
protectedvirtual

Update object stream.

Implements Aspose::Pdf::BaseOperatorCollection.

Member Data Documentation

◆ contents

System::SharedPtr<Engine::Data::IPdfPrimitive> Aspose::Pdf::OperatorCollection::contents
protected

PDF primitive which contains operators list.

◆ RequiresReindex

bool Aspose::Pdf::OperatorCollection::RequiresReindex
protected