Class represent XForm More...

Inherits Aspose::Pdf::ISupportsMemoryCleanup.

Public Member Functions

System::SharedPtr< Aspose::Pdf::Rectangleget_BBox ()
 Gets form bounding box. More...
 
void set_BBox (System::SharedPtr< Aspose::Pdf::Rectangle > value)
 Sets form bounding box. More...
 
System::String get_Name ()
 Gets form name. Form name is name which used to reference form in XObejct ductionary in page resources. More...
 
void set_Name (System::String value)
 Sets form name. Form name is name which used to reference form in XObejct ductionary in page resources. More...
 
System::SharedPtr< OperatorCollectionget_Contents ()
 Gets operators of the form. More...
 
System::SharedPtr< Aspose::Pdf::Opiget_Opi ()
 Gets The Open Prepress Interface (OPI). More...
 
System::SharedPtr< Aspose::Pdf::Matrixget_Matrix ()
 Gets matrix of the form. More...
 
void set_Matrix (System::SharedPtr< Aspose::Pdf::Matrix > value)
 Sets matrix of the form. More...
 
System::SharedPtr< Aspose::Pdf::Resourcesget_Resources ()
 Gets Form XObject resources. More...
 
System::SharedPtr< Aspose::Pdf::Rectangleget_Rectangle ()
 Gets rectangel of the form. More...
 
void FreeMemory ()
 Clears cached data More...
 
- 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 () ASPOSE_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)
 

Static Public Member Functions

static System::SharedPtr< XFormCreateNewForm (System::SharedPtr< Page > source, System::SharedPtr< Document > document)
 Creates XForm which duplicates contents of the page. 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...
 

Protected Member Functions

 XForm (System::SharedPtr< Engine::Data::IPdfObject > xform)
 Constructor of XForm.Constructs XForm on base of Pdf.Kit.Engine PDf object. More...
 
bool ContainsOwnResources ()
 
void setResources (System::SharedPtr< Engine::Data::IPdfPrimitive > resources)
 Change resources entry for x-form. More...
 
System::ArrayPtr< double > GetRectangle ()
 
System::SharedPtr< Aspose::Pdf::RectangleGetRectangleOfText ()
 Returns rectangle occupied by text of XForm. More...
 
void Dispose ()
 Frees up memory More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< System::Object > > > FindReferecnes (System::String name)
 
void ReleaseResources ()
 

Static Protected Member Functions

static System::SharedPtr< XFormCreateNewForm (System::SharedPtr< Engine::Data::ITrailerable > trailerable)
 Creates new XForm in the document. More...
 
static System::SharedPtr< XFormCreateNewForm_OLD (System::SharedPtr< Page > source, System::SharedPtr< Engine::Data::ITrailerable > trailerable, System::SharedPtr< Copier > copier)
 
static System::SharedPtr< XFormCreateNewForm (System::SharedPtr< Page > source, System::SharedPtr< Engine::Data::ITrailerable > trailerable, System::SharedPtr< Copier > copier)
 
static System::SharedPtr< XFormCreateNewForm (System::SharedPtr< Page > source, System::SharedPtr< Engine::Data::ITrailerable > trailerable)
 

Protected Attributes

System::SharedPtr< Aspose::Pdf::Resourcesresources
 
System::WeakPtr< Document_document
 
System::SharedPtr< Engine::Data::IPdfObject > EngineObj
 

Additional Inherited Members

- 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...
 

Detailed Description

Class represent XForm

Constructor & Destructor Documentation

◆ XForm()

Aspose::Pdf::XForm::XForm ( System::SharedPtr< Engine::Data::IPdfObject >  xform)
protected

Constructor of XForm.Constructs XForm on base of Pdf.Kit.Engine PDf object.

Parameters
xform

Member Function Documentation

◆ ContainsOwnResources()

bool Aspose::Pdf::XForm::ContainsOwnResources ( )
protected

◆ CreateNewForm() [1/4]

static System::SharedPtr<XForm> Aspose::Pdf::XForm::CreateNewForm ( System::SharedPtr< Page source,
System::SharedPtr< Document document 
)
static

Creates XForm which duplicates contents of the page.

Parameters
sourceSource page
documentDocument where new XForm will be added.
Returns
Newly created XForm.

◆ CreateNewForm() [2/4]

static System::SharedPtr<XForm> Aspose::Pdf::XForm::CreateNewForm ( System::SharedPtr< Engine::Data::ITrailerable >  trailerable)
staticprotected

Creates new XForm in the document.

Parameters
trailerableDescribes ITrailerable object
Returns
Newly created XForm

◆ CreateNewForm() [3/4]

static System::SharedPtr<XForm> Aspose::Pdf::XForm::CreateNewForm ( System::SharedPtr< Page source,
System::SharedPtr< Engine::Data::ITrailerable >  trailerable,
System::SharedPtr< Copier >  copier 
)
staticprotected

◆ CreateNewForm() [4/4]

static System::SharedPtr<XForm> Aspose::Pdf::XForm::CreateNewForm ( System::SharedPtr< Page source,
System::SharedPtr< Engine::Data::ITrailerable >  trailerable 
)
staticprotected

◆ CreateNewForm_OLD()

static System::SharedPtr<XForm> Aspose::Pdf::XForm::CreateNewForm_OLD ( System::SharedPtr< Page source,
System::SharedPtr< Engine::Data::ITrailerable >  trailerable,
System::SharedPtr< Copier >  copier 
)
staticprotected

◆ Dispose()

void Aspose::Pdf::XForm::Dispose ( )
protected

Frees up memory

◆ FindReferecnes()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Object> > > Aspose::Pdf::XForm::FindReferecnes ( System::String  name)
protected

◆ FreeMemory()

void Aspose::Pdf::XForm::FreeMemory ( )
virtual

Clears cached data

Implements Aspose::Pdf::ISupportsMemoryCleanup.

◆ get_BBox()

System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::XForm::get_BBox ( )

Gets form bounding box.

◆ get_Contents()

System::SharedPtr<OperatorCollection> Aspose::Pdf::XForm::get_Contents ( )

Gets operators of the form.

◆ get_Matrix()

System::SharedPtr<Aspose::Pdf::Matrix> Aspose::Pdf::XForm::get_Matrix ( )

Gets matrix of the form.

◆ get_Name()

System::String Aspose::Pdf::XForm::get_Name ( )

Gets form name. Form name is name which used to reference form in XObejct ductionary in page resources.

◆ get_Opi()

System::SharedPtr<Aspose::Pdf::Opi> Aspose::Pdf::XForm::get_Opi ( )

Gets The Open Prepress Interface (OPI).

◆ get_Rectangle()

System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::XForm::get_Rectangle ( )

Gets rectangel of the form.

◆ get_Resources()

System::SharedPtr<Aspose::Pdf::Resources> Aspose::Pdf::XForm::get_Resources ( )

Gets Form XObject resources.

◆ GetRectangle()

System::ArrayPtr<double> Aspose::Pdf::XForm::GetRectangle ( )
protected

◆ GetRectangleOfText()

System::SharedPtr<Aspose::Pdf::Rectangle> Aspose::Pdf::XForm::GetRectangleOfText ( )
protected

Returns rectangle occupied by text of XForm.

Returns
X-Form object rectangle

◆ ReleaseResources()

void Aspose::Pdf::XForm::ReleaseResources ( )
protected

◆ set_BBox()

void Aspose::Pdf::XForm::set_BBox ( System::SharedPtr< Aspose::Pdf::Rectangle value)

Sets form bounding box.

◆ set_Matrix()

void Aspose::Pdf::XForm::set_Matrix ( System::SharedPtr< Aspose::Pdf::Matrix value)

Sets matrix of the form.

◆ set_Name()

void Aspose::Pdf::XForm::set_Name ( System::String  value)

Sets form name. Form name is name which used to reference form in XObejct ductionary in page resources.

◆ setResources()

void Aspose::Pdf::XForm::setResources ( System::SharedPtr< Engine::Data::IPdfPrimitive >  resources)
protected

Change resources entry for x-form.

Parameters
resources

Member Data Documentation

◆ _document

System::WeakPtr<Document> Aspose::Pdf::XForm::_document
protected

◆ EngineObj

System::SharedPtr<Engine::Data::IPdfObject> Aspose::Pdf::XForm::EngineObj
protected

◆ resources

System::SharedPtr<Aspose::Pdf::Resources> Aspose::Pdf::XForm::resources
protected