This class encapsulates PS/EPS documents. More...

Inherits Aspose::Page::Document.

Classes

class  ErrorPrintStream
 

Public Member Functions

ASPOSE_PAGE_SHARED_API int32_t get_NumberOfPages () const
 Returns the number of pages in resulting PDF document. More...
 
ASPOSE_PAGE_SHARED_API PsDocument (System::SharedPtr< System::IO::Stream > outPsStream, System::SharedPtr< Device::PsSaveOptions > options)
 Initializes empty PsDocument with initialized page. More...
 
ASPOSE_PAGE_SHARED_API PsDocument (System::SharedPtr< System::IO::Stream > outPsStream, System::SharedPtr< Device::PsSaveOptions > options, bool multipaged)
 Initializes empty PsDocument. More...
 
ASPOSE_PAGE_SHARED_API PsDocument (System::SharedPtr< System::IO::Stream > outPsStream, System::SharedPtr< Device::PsSaveOptions > options, int32_t numberOfPages)
 Initializes empty PsDocument when the number of Postscript document pages is known in advance. More...
 
ASPOSE_PAGE_SHARED_API PsDocument (System::SharedPtr< System::IO::Stream > inPsStream)
 Initializes PsDocument with a stream of PS/EPS file. More...
 
ASPOSE_PAGE_SHARED_API void Save (System::SharedPtr< Aspose::Page::Device > device, System::SharedPtr< SaveOptions > options) override
 Saves PS/EPS file to a device. More...
 
ASPOSE_PAGE_SHARED_API void Save (System::SharedPtr< System::IO::Stream > epsStream)
 Saves given PsDocument as EPS file. This method is used only after updating XMP metadata. It saves initial EPS file with updated existing metadata or new one created while calling GetMetadata method. In the last case all necessary PostScript code and EPS comments are added. More...
 
ASPOSE_PAGE_SHARED_API void Save ()
 Saves given PsDocument as EPS file. This method is used only when PsDocument was created from scratch. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XMP::XmpMetadataGetXmpMetadata ()
 Reads PS/EPS file and extracts XmpMetdata if it already exists or add new one if it doesn't exist. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Size ExtractEpsSize ()
 Reads EPS file and extracts a size of EPS image from %BoundingBox comment or default page size (595, 842) if it doesn't exist. More...
 
ASPOSE_PAGE_SHARED_API void ResizeEps (System::SharedPtr< System::IO::Stream > epsStream, System::Drawing::SizeF newSizeInUnits, Units units)
 Resizes given PsDocument as EPS file. This method is used only after extracting EPS size. It saves initial EPS file with updated existing %BoundingBox or new one will be created. Page transformation matrix also will be set. More...
 
ASPOSE_PAGE_SHARED_API System::ArrayPtr< int32_t > ExtractEpsBoundingBox ()
 Reads EPS file and extracts bounding box of EPS image from %BoundingBox comment or bounds for default page size (0, 0, 595, 842) if it doesn't exist. More...
 
ASPOSE_PAGE_SHARED_API void CropEps (System::SharedPtr< System::IO::Stream > epsStream, System::ArrayPtr< float > cropBox)
 Crops given PsDocument as EPS file. It saves initial EPS file with updated existing %BoundingBox or new one will be created. More...
 
ASPOSE_PAGE_SHARED_API void SetPageSize (float width, float height)
 Sets page size. To create pages with different sizes in one document use SetPageDevice method just after this method. More...
 
ASPOSE_PAGE_SHARED_API void SetPageDevice (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> pageParams)
 Sets page device parameters (see operator "setpagedevice" PostScript spesification). Among these can be page size and color etc. More...
 
ASPOSE_PAGE_SHARED_API void OpenPage (float width, float height)
 Creates new page and make it current one. More...
 
ASPOSE_PAGE_SHARED_API void OpenPage (System::String pageName=nullptr)
 Creates new page with document's size and make it current one. More...
 
ASPOSE_PAGE_SHARED_API void ClosePage ()
 Complete current page. More...
 
ASPOSE_PAGE_SHARED_API void WriteGraphicsSave ()
 Writes saving of the current graphics state (See PostScript specification on operator "gsave"). More...
 
ASPOSE_PAGE_SHARED_API void WriteGraphicsRestore ()
 Writes restoring of the current graphics state (See PostScript specification on operator "grestore"). More...
 
ASPOSE_PAGE_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > matrix)
 Set current transformation to this one. More...
 
ASPOSE_PAGE_SHARED_API void Transform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > matrix)
 Adds transformation to current graphics state (concatenates this matrix with current one). More...
 
ASPOSE_PAGE_SHARED_API void Translate (float x, float y)
 Adds translation to current graphics state (translates current matrix). More...
 
ASPOSE_PAGE_SHARED_API void Scale (float xScale, float yScale)
 Adds scale to current graphics state (scale current matrix). More...
 
ASPOSE_PAGE_SHARED_API void Rotate (float angleRadians)
 Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix). More...
 
ASPOSE_PAGE_SHARED_API void Rotate (int32_t angleDegrees)
 Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix). More...
 
ASPOSE_PAGE_SHARED_API void Shear (float shx, float shy)
 Rotates current graphics state counterclockwise around a point. More...
 
ASPOSE_PAGE_SHARED_API void Clip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > s)
 Adds clip to current graphics state. More...
 
ASPOSE_PAGE_SHARED_API void ClipText (System::String text, System::SharedPtr< System::Drawing::Font > font, float x, float y)
 Adds clip from an outline of given text in given font. More...
 
ASPOSE_PAGE_SHARED_API void ClipRectangle (System::Drawing::RectangleF rect)
 Adds clipping rectangle to current graphics state. More...
 
ASPOSE_PAGE_SHARED_API void ClipAndNewPath (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > s)
 Adds clip to current graphics state and than writes "newpath" operator. It is necessary to do to escape of confluence of this clipping path and some subsequent pathes such as glyphs outlined with "charpath" operator. More...
 
ASPOSE_PAGE_SHARED_API void SetPaint (System::SharedPtr< System::Drawing::Brush > paint)
 Sets paint in current graphics state. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::BrushGetPaint ()
 Gets paint of current graphics state. More...
 
ASPOSE_PAGE_SHARED_API void SetStroke (System::SharedPtr< System::Drawing::Pen > stroke)
 Sets stroke in current graphics state. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::PenGetStroke ()
 Sets stroke in current graphics state. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::SharedPtr< System::Drawing::Font > font, float x, float y)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< System::Drawing::Font > font, float x, float y)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::SharedPtr< System::Drawing::Font > font, float x, float y, System::SharedPtr< System::Drawing::Brush > fill)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< System::Drawing::Font > font, float x, float y, System::SharedPtr< System::Drawing::Brush > fill)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fill)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void FillText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fill)
 Adds a text string by filling interrior of glyphs. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::SharedPtr< System::Drawing::Font > font, float x, float y)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< System::Drawing::Font > font, float x, float y)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::SharedPtr< System::Drawing::Font > font, float x, float y, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< System::Drawing::Font > font, float x, float y, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void OutlineText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void FillAndStrokeText (System::String text, System::SharedPtr< System::Drawing::Font > font, float x, float y, System::SharedPtr< System::Drawing::Brush > fillPaint, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by filling interrior of glyphs and drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void FillAndStrokeText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< System::Drawing::Font > font, float x, float y, System::SharedPtr< System::Drawing::Brush > fillPaint, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by filling interrior of glyphs and drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void FillAndStrokeText (System::String text, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fillPaint, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by filling interrior of glyphs and drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void FillAndStrokeText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Page::Font::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fillPaint, System::SharedPtr< System::Drawing::Pen > stroke)
 Adds a text string by filling interrior of glyphs and drawing glyphs contours. More...
 
ASPOSE_PAGE_SHARED_API void Fill (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > shape)
 Fill an arbitrary path. More...
 
ASPOSE_PAGE_SHARED_API void Draw (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > shape)
 Draw an arbitrary path. More...
 
ASPOSE_PAGE_SHARED_API void DrawArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Draws an arc. More...
 
ASPOSE_PAGE_SHARED_API void DrawLine (double x1, double y1, double x2, double y2)
 Draws a line segment. More...
 
ASPOSE_PAGE_SHARED_API void DrawOval (double x, double y, double width, double height)
 Draws an oval. More...
 
ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polygon. More...
 
ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a poligone. More...
 
ASPOSE_PAGE_SHARED_API void DrawRect (double x, double y, double width, double height)
 Draws a rectangle. More...
 
ASPOSE_PAGE_SHARED_API void DrawRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Draws a round rectangle. More...
 
ASPOSE_PAGE_SHARED_API void FillArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Fills an arc. More...
 
ASPOSE_PAGE_SHARED_API void FillOval (double x, double y, double width, double height)
 Fills an oval. More...
 
ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
ASPOSE_PAGE_SHARED_API void FillRect (double x, double y, double width, double height)
 Fills a rectangle. More...
 
ASPOSE_PAGE_SHARED_API void FillRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Fills a round rectangle. More...
 
ASPOSE_PAGE_SHARED_API void DrawImage (System::SharedPtr< System::Drawing::Bitmap > image)
 Draw image. More...
 
ASPOSE_PAGE_SHARED_API void DrawImage (System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::Drawing::Color bkg)
 Draw transformed image with background. More...
 
ASPOSE_PAGE_SHARED_API void DrawTransparentImage (System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, int32_t transparencyThreshold)
 Draw transformed transparent image. If image doesn't have Alpha channel it will be drawn as opaque image More...
 
ASPOSE_PAGE_SHARED_API void DrawExplicitImageMask (System::SharedPtr< System::Drawing::Bitmap > image24bpp, System::SharedPtr< System::Drawing::Bitmap > alphaMask1bpp, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform)
 Draw masked image. More...
 
ASPOSE_PAGE_SHARED_API void Merge (System::ArrayPtr< System::String > filesForMerge, System::SharedPtr< Aspose::Page::Device > device, System::SharedPtr< SaveOptions > options)
 Merges PS/EPS files to a device. More...
 
- Public Member Functions inherited from Aspose::Page::Document
virtual ASPOSE_PAGE_SHARED_API void Save (System::SharedPtr< Device > device, System::SharedPtr< SaveOptions > options)=0
 Saves this document to a device. More...
 
ASPOSE_PAGE_SHARED_API Document ()
 
- 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 reference 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 int32_t 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. 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 ASPOSE_PAGE_SHARED_API void SaveImageAsEps (System::SharedPtr< System::IO::Stream > imageStream, System::SharedPtr< System::IO::Stream > epsStream, System::SharedPtr< Device::PsSaveOptions > options)
 Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from input stream to EPS output stream. More...
 
static ASPOSE_PAGE_SHARED_API void SaveImageAsEps (System::String imageFilePath, System::String epsFilePath, System::SharedPtr< Device::PsSaveOptions > options)
 Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from file to EPS file. More...
 
static ASPOSE_PAGE_SHARED_API void SaveImageAsEps (System::SharedPtr< System::Drawing::Bitmap > image, System::String epsFilePath, System::SharedPtr< Device::PsSaveOptions > options)
 Saves Bitmap object to EPS file. More...
 
static ASPOSE_PAGE_SHARED_API void SaveImageAsEps (System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::IO::Stream > epsStream, System::SharedPtr< Device::PsSaveOptions > options)
 Saves Bitmap object to EPS output stream. 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 ()
 Implements C# typeof(System.Object) construct. More...
 

Protected Member Functions

System::SharedPtr< System::IO::Streamget_InputStream ()
 Initializes PsDocument with a stream and load options. More...
 
void set_InputStream (System::SharedPtr< System::IO::Stream > value)
 Initializes PsDocument with a stream and load options. More...
 
System::SharedPtr< Aspose::Page::EPS::Postscript::Metadata > get_Metadata ()
 
bool get_IsLicensed ()
 
 PsDocument ()
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (PsDocument, CODEPORTING_ARGS())
 
void RenderAps (System::SharedPtr< System::IO::Stream > apsStream, System::SharedPtr< ApsLoadOptions > options)
 
void RenderAps (System::SharedPtr< Aspose::Rendering::ApsGroup > group, System::SharedPtr< ApsLoadOptions > options)
 
void FillText (System::String text, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y)
 
void FillText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y)
 
void FillText (System::String text, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fill)
 
void FillText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fill)
 
void OutlineText (System::String text, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y)
 
void OutlineText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y)
 
void OutlineText (System::String text, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > outlinePaint, System::SharedPtr< System::Drawing::Pen > stroke)
 
void OutlineText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > outlinePaint, System::SharedPtr< System::Drawing::Pen > stroke)
 
void FillAndStrokeText (System::String text, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fillPaint, System::SharedPtr< System::Drawing::Brush > strokePaint, System::SharedPtr< System::Drawing::Pen > stroke)
 
void FillAndStrokeText (System::String text, System::ArrayPtr< float > advances, System::SharedPtr< Aspose::Foundation::Drawing::DrFont > drFont, float x, float y, System::SharedPtr< System::Drawing::Brush > fillPaint, System::SharedPtr< System::Drawing::Brush > strokePaint, System::SharedPtr< System::Drawing::Pen > stroke)
 
virtual ASPOSE_PAGE_SHARED_API ~PsDocument ()
 
- Protected Member Functions inherited from Aspose::Page::Document
void SetPlugin (Plugins::Plugin plugin)
 
virtual ASPOSE_PAGE_SHARED_API void SetVentureLicense (System::SharedPtr< LicenseManagement::VentureLicense > license)
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< LicenseManagement::VentureLicense > GetVentureLicense ()
 

Static Protected Member Functions

static void SetAdditionalFontsFolders (System::ArrayPtr< System::String > additionalFontFolders)
 

Protected Attributes

bool directRgbMode
 
System::SharedPtr< Postscript::PSInputFile > in
 
BinaryHeader binaryHeader
 
int32_t numberOfPages
 
- Protected Attributes inherited from Aspose::Page::Document
System::SharedPtr< LicenseManagement::VentureLicense > _ventureLicense
 
Plugins::Plugin _usedByPlugin
 

Static Protected Attributes

static const System::String IN_EXT
 
static const System::String IN_EXT2
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

This class encapsulates PS/EPS documents.

Constructor & Destructor Documentation

◆ PsDocument() [1/5]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::PsDocument::PsDocument ( System::SharedPtr< System::IO::Stream outPsStream,
System::SharedPtr< Device::PsSaveOptions options 
)

Initializes empty PsDocument with initialized page.

Parameters
outPsStreamStream where to save PS/EPS file.
optionsA set of parameters controlling saving of PostScript file.

◆ PsDocument() [2/5]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::PsDocument::PsDocument ( System::SharedPtr< System::IO::Stream outPsStream,
System::SharedPtr< Device::PsSaveOptions options,
bool  multipaged 
)

Initializes empty PsDocument.

Parameters
outPsStreamStream where to save PS/EPS file.
optionsA set of parameters controlling saving of PostScript file.
multipagedIf false page will not be initialized. In this case page initialization should be performed via explicit "openPage(width, height) call.

◆ PsDocument() [3/5]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::PsDocument::PsDocument ( System::SharedPtr< System::IO::Stream outPsStream,
System::SharedPtr< Device::PsSaveOptions options,
int32_t  numberOfPages 
)

Initializes empty PsDocument when the number of Postscript document pages is known in advance.

Parameters
outPsStreamStream where to save PS/EPS file.
optionsA set of parameters controlling saving of PostScript file.
numberOfPagesThe number of pages in the PostScript document.

◆ PsDocument() [4/5]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::PsDocument::PsDocument ( System::SharedPtr< System::IO::Stream inPsStream)

Initializes PsDocument with a stream of PS/EPS file.

Parameters
inPsStreamInput stream of PS/EPS file.

◆ PsDocument() [5/5]

Aspose::Page::EPS::PsDocument::PsDocument ( )
protected

◆ ~PsDocument()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::PsDocument::~PsDocument ( )
protectedvirtual

Member Function Documentation

◆ Clip()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Clip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath s)

Adds clip to current graphics state.

Parameters
sThe clipping path.

◆ ClipAndNewPath()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ClipAndNewPath ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath s)

Adds clip to current graphics state and than writes "newpath" operator. It is necessary to do to escape of confluence of this clipping path and some subsequent pathes such as glyphs outlined with "charpath" operator.

Parameters
sThe clipping path.

◆ ClipRectangle()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ClipRectangle ( System::Drawing::RectangleF  rect)

Adds clipping rectangle to current graphics state.

Parameters
rectThe clipping rectangle.

◆ ClipText()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ClipText ( System::String  text,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y 
)

Adds clip from an outline of given text in given font.

Parameters
textThe text.
fontThe font.
xAn X coordinate of the text position.
yAn Y coordinate of the text position.

◆ ClosePage()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ClosePage ( )

Complete current page.

◆ CropEps()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::CropEps ( System::SharedPtr< System::IO::Stream epsStream,
System::ArrayPtr< float >  cropBox 
)

Crops given PsDocument as EPS file. It saves initial EPS file with updated existing %BoundingBox or new one will be created.

Parameters
epsStreamStream of output EPS file.
cropBoxThe crop box (x0, y0, x, y).

◆ Draw()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Draw ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath shape)

Draw an arbitrary path.

Parameters
shapeThe path to draw.

◆ DrawArc()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawArc ( double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  arcAngle 
)

Draws an arc.

Parameters
xX coordinate of center of the arc.
yY coordinate of center of the arc.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.
startAngleA start angle of the arc.
arcAngleAn angle of the arc.

◆ DrawExplicitImageMask()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawExplicitImageMask ( System::SharedPtr< System::Drawing::Bitmap image24bpp,
System::SharedPtr< System::Drawing::Bitmap alphaMask1bpp,
System::SharedPtr< System::Drawing::Drawing2D::Matrix transform 
)

Draw masked image.

Parameters
image24bppThe image to draw. Must be in 24bpp RGB image format
alphaMask1bppThe image mask. Must be in 1bpp image format.
transformThe matrix to transform image.

◆ DrawImage() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawImage ( System::SharedPtr< System::Drawing::Bitmap image)

Draw image.

Parameters
imageThe image to draw.

◆ DrawImage() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawImage ( System::SharedPtr< System::Drawing::Bitmap image,
System::SharedPtr< System::Drawing::Drawing2D::Matrix transform,
System::Drawing::Color  bkg 
)

Draw transformed image with background.

Parameters
imageThe image to draw.
transformThe matrix to transform image.
bkgBackground for image.

◆ DrawLine()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawLine ( double  x1,
double  y1,
double  x2,
double  y2 
)

Draws a line segment.

Parameters
x1X coordinate of the beginning of segment.
y1Y coordinate of the beginning of segment.
x2X coordinate of the end of segment.
y2Y coordinate of the end of segment.

◆ DrawOval()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawOval ( double  x,
double  y,
double  width,
double  height 
)

Draws an oval.

Parameters
xX coordinate of center of the oval.
yY coordinate of center of the oval.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.

◆ DrawPolygon() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawPolygon ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints 
)

Draws a polygon.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawPolygon() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawPolygon ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints 
)

Draws a poligone.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawPolyline() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawPolyline ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints 
)

Draws a polyline.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawPolyline() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawPolyline ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints 
)

Draws a polyline.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawRect()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawRect ( double  x,
double  y,
double  width,
double  height 
)

Draws a rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.

◆ DrawRoundRect()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawRoundRect ( double  x,
double  y,
double  width,
double  height,
double  arcWidth,
double  arcHeight 
)

Draws a round rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.
arcWidthA width of circumscribed rectangle of the arc that rounds an angle of the rectangle.
arcHeightA height of circumscribed rectangle of the arc that rounds an angle of the rectangle.

◆ DrawTransparentImage()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawTransparentImage ( System::SharedPtr< System::Drawing::Bitmap image,
System::SharedPtr< System::Drawing::Drawing2D::Matrix transform,
int32_t  transparencyThreshold 
)

Draw transformed transparent image. If image doesn't have Alpha channel it will be drawn as opaque image

Parameters
imageThe image to draw.
transformThe matrix to transform image.
transparencyThresholdA threshold that defines from which value of transparency pixel will be interpreted as fully transparent. All values below this threshold will be interpreted as fully opaque.

◆ ExtractEpsBoundingBox()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<int32_t> Aspose::Page::EPS::PsDocument::ExtractEpsBoundingBox ( )

Reads EPS file and extracts bounding box of EPS image from %BoundingBox comment or bounds for default page size (0, 0, 595, 842) if it doesn't exist.

Returns
The bounding box of the EPS image.

◆ ExtractEpsSize()

ASPOSE_PAGE_SHARED_API System::Drawing::Size Aspose::Page::EPS::PsDocument::ExtractEpsSize ( )

Reads EPS file and extracts a size of EPS image from %BoundingBox comment or default page size (595, 842) if it doesn't exist.

Returns
The size of the EPS image.

◆ Fill()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Fill ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath shape)

Fill an arbitrary path.

Parameters
shapeThe path to fill.

◆ FillAndStrokeText() [1/6]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillAndStrokeText ( System::String  text,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fillPaint,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

Parameters
textThe text to add.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.
fillPaintThe fill used for painting glyphs interior.
strokeThe stroke used for drawing glyphs contours.

◆ FillAndStrokeText() [2/6]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillAndStrokeText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fillPaint,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.
fillPaintThe fill used for painting glyphs interior.
strokeThe stroke used for drawing glyphs contours.

◆ FillAndStrokeText() [3/6]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillAndStrokeText ( System::String  text,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fillPaint,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

Parameters
textThe text to add.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.
fillPaintThe fill used for painting glyphs interior.
strokeThe stroke used for drawing glyphs contours.

◆ FillAndStrokeText() [4/6]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillAndStrokeText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fillPaint,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.
fillPaintThe fill used for painting glyphs interior.
strokeThe stroke used for drawing glyphs contours.

◆ FillAndStrokeText() [5/6]

void Aspose::Page::EPS::PsDocument::FillAndStrokeText ( System::String  text,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fillPaint,
System::SharedPtr< System::Drawing::Brush strokePaint,
System::SharedPtr< System::Drawing::Pen stroke 
)
protected

◆ FillAndStrokeText() [6/6]

void Aspose::Page::EPS::PsDocument::FillAndStrokeText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fillPaint,
System::SharedPtr< System::Drawing::Brush strokePaint,
System::SharedPtr< System::Drawing::Pen stroke 
)
protected

◆ FillArc()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillArc ( double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  arcAngle 
)

Fills an arc.

Parameters
xX coordinate of center of the arc.
yY coordinate of center of the arc.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.
startAngleA start angle of the arc.
arcAngleAn angle of the arc.

◆ FillOval()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillOval ( double  x,
double  y,
double  width,
double  height 
)

Fills an oval.

Parameters
xX coordinate of center of the oval.
yY coordinate of center of the oval.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.

◆ FillPolygon() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillPolygon ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints 
)

Fills a poligone.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ FillPolygon() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillPolygon ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints 
)

Fills a poligone.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ FillRect()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillRect ( double  x,
double  y,
double  width,
double  height 
)

Fills a rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.

◆ FillRoundRect()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillRoundRect ( double  x,
double  y,
double  width,
double  height,
double  arcWidth,
double  arcHeight 
)

Fills a round rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.
arcWidthA width of circumscribed rectangle of the arc that rounds an angle of the rectangle.
arcHeightA height of circumscribed rectangle of the arc that rounds an angle of the rectangle.

◆ FillText() [1/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.

◆ FillText() [2/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
fontThe font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.

◆ FillText() [3/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.

◆ FillText() [4/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.

◆ FillText() [5/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fill 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.
fillThe fill used for painting glyphs.

◆ FillText() [6/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fill 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.
fillThe fill used for painting glyphs.

◆ FillText() [7/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fill 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.
fillThe fill used for painting glyphs.

◆ FillText() [8/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fill 
)

Adds a text string by filling interrior of glyphs.

Parameters
textThe text to add.

///

Parameters
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.
fillThe fill used for painting glyphs.

◆ FillText() [9/12]

void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y 
)
protected

◆ FillText() [10/12]

void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y 
)
protected

◆ FillText() [11/12]

void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fill 
)
protected

◆ FillText() [12/12]

void Aspose::Page::EPS::PsDocument::FillText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush fill 
)
protected

◆ get_InputStream()

System::SharedPtr<System::IO::Stream> Aspose::Page::EPS::PsDocument::get_InputStream ( )
protected

Initializes PsDocument with a stream and load options.

Parameters
inPsStreamInput stream of PS/EPS file.
loadOptionsSet of parameters controlling loading of PS file.

◆ get_IsLicensed()

bool Aspose::Page::EPS::PsDocument::get_IsLicensed ( )
protected

◆ get_Metadata()

System::SharedPtr<Aspose::Page::EPS::Postscript::Metadata> Aspose::Page::EPS::PsDocument::get_Metadata ( )
protected

◆ get_NumberOfPages()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::EPS::PsDocument::get_NumberOfPages ( ) const

Returns the number of pages in resulting PDF document.

◆ GetPaint()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Brush> Aspose::Page::EPS::PsDocument::GetPaint ( )

Gets paint of current graphics state.

<return> Current paint.</return>

◆ GetStroke()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Pen> Aspose::Page::EPS::PsDocument::GetStroke ( )

Sets stroke in current graphics state.

Parameters
brushThe brush used in the stroke.
widthThe width of the stroke.

Gets stroke of current graphics state.

<return> Current stroke.</return>

◆ GetXmpMetadata()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XMP::XmpMetadata> Aspose::Page::EPS::PsDocument::GetXmpMetadata ( )

Reads PS/EPS file and extracts XmpMetdata if it already exists or add new one if it doesn't exist.

Returns
Existing or new instance of XMP metadata.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Page::EPS::PsDocument::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( PsDocument  ,
CODEPORTING_ARGS()   
)
protected

◆ Merge()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Merge ( System::ArrayPtr< System::String filesForMerge,
System::SharedPtr< Aspose::Page::Device device,
System::SharedPtr< SaveOptions options 
)

Merges PS/EPS files to a device.

Parameters
filesForMergePS/EPS files for merging with this file to an output device.
deviceAn output device.
optionsContains flags that specify output of errors thrown during conversion.

◆ OpenPage() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OpenPage ( float  width,
float  height 
)

Creates new page and make it current one.

Parameters
widthThe width of new page.
heightThe height of new page.

◆ OpenPage() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OpenPage ( System::String  pageName = nullptr)

Creates new page with document's size and make it current one.

Parameters
pageNameThe name of new page. If it is null the name o the page will be an order number of the page.

◆ OutlineText() [1/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.

◆ OutlineText() [2/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
fontThe font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.

◆ OutlineText() [3/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.

◆ OutlineText() [4/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.

◆ OutlineText() [5/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.
strokeThe stroke used for drawing glyphs outlines.

◆ OutlineText() [6/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< System::Drawing::Font font,
float  x,
float  y,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
fontSystem font that will be used to draw text.
xX coordinate for text origin.
yY coordinate for text origin.
strokeThe stroke used for drawing glyphs outlines.

◆ OutlineText() [7/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.
strokeThe stroke used for drawing glyphs outlines.

◆ OutlineText() [8/12]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Page::Font::DrFont drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Pen stroke 
)

Adds a text string by drawing glyphs contours.

Parameters
textThe text to add.
advancesAn array of glyphs width. It's length must comply with the number of glyphs in the string.
drFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xX coordinate for text origin.
yY coordinate for text origin.
strokeThe stroke used for drawing glyphs outlines.

◆ OutlineText() [9/12]

void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y 
)
protected

◆ OutlineText() [10/12]

void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y 
)
protected

◆ OutlineText() [11/12]

void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush outlinePaint,
System::SharedPtr< System::Drawing::Pen stroke 
)
protected

◆ OutlineText() [12/12]

void Aspose::Page::EPS::PsDocument::OutlineText ( System::String  text,
System::ArrayPtr< float >  advances,
System::SharedPtr< Aspose::Foundation::Drawing::DrFont >  drFont,
float  x,
float  y,
System::SharedPtr< System::Drawing::Brush outlinePaint,
System::SharedPtr< System::Drawing::Pen stroke 
)
protected

◆ RenderAps() [1/2]

void Aspose::Page::EPS::PsDocument::RenderAps ( System::SharedPtr< System::IO::Stream apsStream,
System::SharedPtr< ApsLoadOptions >  options 
)
protected

◆ RenderAps() [2/2]

void Aspose::Page::EPS::PsDocument::RenderAps ( System::SharedPtr< Aspose::Rendering::ApsGroup >  group,
System::SharedPtr< ApsLoadOptions >  options 
)
protected

◆ ResizeEps()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ResizeEps ( System::SharedPtr< System::IO::Stream epsStream,
System::Drawing::SizeF  newSizeInUnits,
Units  units 
)

Resizes given PsDocument as EPS file. This method is used only after extracting EPS size. It saves initial EPS file with updated existing %BoundingBox or new one will be created. Page transformation matrix also will be set.

Parameters
epsStreamStream of output EPS file.
newSizeInUnitsNew size of EPS image in assigned units.
unitsThe units of the new size. Can be points, inches, millimeters, centimeters and percents of initial size.

◆ Rotate() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Rotate ( float  angleRadians)

Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix).

Parameters
angleRadiansThe angle of rotation in radians.

◆ Rotate() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Rotate ( int32_t  angleDegrees)

Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix).

Parameters
angleDegreesThe angle of rotation in degrees.

◆ Save() [1/3]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Save ( System::SharedPtr< Aspose::Page::Device device,
System::SharedPtr< SaveOptions options 
)
override

Saves PS/EPS file to a device.

Parameters
deviceAn output device.
optionsContains flags that specify output of errors thrown during conversion.

◆ Save() [2/3]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Save ( System::SharedPtr< System::IO::Stream epsStream)

Saves given PsDocument as EPS file. This method is used only after updating XMP metadata. It saves initial EPS file with updated existing metadata or new one created while calling GetMetadata method. In the last case all necessary PostScript code and EPS comments are added.

Parameters
epsStreamStream of output EPS file.

◆ Save() [3/3]

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Save ( )

Saves given PsDocument as EPS file. This method is used only when PsDocument was created from scratch.

◆ SaveImageAsEps() [1/4]

static ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SaveImageAsEps ( System::SharedPtr< System::IO::Stream imageStream,
System::SharedPtr< System::IO::Stream epsStream,
System::SharedPtr< Device::PsSaveOptions options 
)
static

Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from input stream to EPS output stream.

Parameters
imageStreamImage input stream.
epsStreamEPS output stream.
optionsContains parameters that specify output of errors thrown during conversion.

◆ SaveImageAsEps() [2/4]

static ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SaveImageAsEps ( System::String  imageFilePath,
System::String  epsFilePath,
System::SharedPtr< Device::PsSaveOptions options 
)
static

Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from file to EPS file.

Parameters
imageFilePathThe image file path.
epsFilePathEPS file path.
optionsContains parameters that specify output of errors thrown during conversion.

◆ SaveImageAsEps() [3/4]

static ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SaveImageAsEps ( System::SharedPtr< System::Drawing::Bitmap image,
System::String  epsFilePath,
System::SharedPtr< Device::PsSaveOptions options 
)
static

Saves Bitmap object to EPS file.

Parameters
imageThe image.
epsFilePathEPS file path.
optionsContains parameters that specify output of errors thrown during conversion.

◆ SaveImageAsEps() [4/4]

static ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SaveImageAsEps ( System::SharedPtr< System::Drawing::Bitmap image,
System::SharedPtr< System::IO::Stream epsStream,
System::SharedPtr< Device::PsSaveOptions options 
)
static

Saves Bitmap object to EPS output stream.

Parameters
imageThe image.
epsStreamEPS output stream.
optionsContains parameters that specify output of errors thrown during conversion.

◆ Scale()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Scale ( float  xScale,
float  yScale 
)

Adds scale to current graphics state (scale current matrix).

Parameters
xScaleThe scale in X axis.
yScaleThe translation in Y axis.

◆ set_InputStream()

void Aspose::Page::EPS::PsDocument::set_InputStream ( System::SharedPtr< System::IO::Stream value)
protected

Initializes PsDocument with a stream and load options.

Parameters
inPsStreamInput stream of PS/EPS file.
loadOptionsSet of parameters controlling loading of PS file.

◆ SetAdditionalFontsFolders()

static void Aspose::Page::EPS::PsDocument::SetAdditionalFontsFolders ( System::ArrayPtr< System::String additionalFontFolders)
staticprotected

◆ SetPageDevice()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetPageDevice ( System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>>  pageParams)

Sets page device parameters (see operator "setpagedevice" PostScript spesification). Among these can be page size and color etc.

Parameters
pageParamsParameters of the page. In this dictionary can be page size and color etc

◆ SetPageSize()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetPageSize ( float  width,
float  height 
)

Sets page size. To create pages with different sizes in one document use SetPageDevice method just after this method.

Parameters
widthThe width of page in resulting PostScript file.
heightThe height of page in resulting PostScript file.

◆ SetPaint()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetPaint ( System::SharedPtr< System::Drawing::Brush paint)

Sets paint in current graphics state.

Parameters
paintThe paint. It can be any subclass of Brush class existed in .NET platform.

◆ SetStroke()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetStroke ( System::SharedPtr< System::Drawing::Pen stroke)

Sets stroke in current graphics state.

Parameters
strokeThe stroke.

◆ SetTransform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix matrix)

Set current transformation to this one.

Parameters
matrixThe transformation.

◆ Shear()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Shear ( float  shx,
float  shy 
)

Rotates current graphics state counterclockwise around a point.

Parameters
angleDegreesThe angle of rotation in degrees.
pointThe point around which rotation will be performed.

Adds shear transformation to current graphics state (shear current matrix).

Parameters
shxThe shear in X axis.
shyThe shear in Y axis.

◆ Transform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Transform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix matrix)

Adds transformation to current graphics state (concatenates this matrix with current one).

Parameters
matrixThe transformation.

◆ Translate()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Translate ( float  x,
float  y 
)

Adds translation to current graphics state (translates current matrix).

Parameters
xThe translation in X direction.
yThe translation in Y direction.

◆ WriteGraphicsRestore()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::WriteGraphicsRestore ( )

Writes restoring of the current graphics state (See PostScript specification on operator "grestore").

◆ WriteGraphicsSave()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::WriteGraphicsSave ( )

Writes saving of the current graphics state (See PostScript specification on operator "gsave").

Member Data Documentation

◆ binaryHeader

BinaryHeader Aspose::Page::EPS::PsDocument::binaryHeader
protected

◆ directRgbMode

bool Aspose::Page::EPS::PsDocument::directRgbMode
protected

◆ in

System::SharedPtr<Postscript::PSInputFile> Aspose::Page::EPS::PsDocument::in
protected

◆ IN_EXT

const System::String Aspose::Page::EPS::PsDocument::IN_EXT
staticprotected

◆ IN_EXT2

const System::String Aspose::Page::EPS::PsDocument::IN_EXT2
staticprotected

◆ numberOfPages

int32_t Aspose::Page::EPS::PsDocument::numberOfPages
protected