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::XmpMetadata > | GetXmpMetadata () |
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::Brush > | GetPaint () |
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::Pen > | GetStroke () |
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... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
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 TypeInfo & | GetType () 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 TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Protected Member Functions | |
System::SharedPtr< System::IO::Stream > | get_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< Object > | ptr |
Alias for smart pointer type. More... | |
This class encapsulates PS/EPS documents.
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.
outPsStream | Stream where to save PS/EPS file. |
options | A set of parameters controlling saving of PostScript file. |
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.
outPsStream | Stream where to save PS/EPS file. |
options | A set of parameters controlling saving of PostScript file. |
multipaged | If false page will not be initialized. In this case page initialization should be performed via explicit "openPage(width, height) call. |
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.
outPsStream | Stream where to save PS/EPS file. |
options | A set of parameters controlling saving of PostScript file. |
numberOfPages | The number of pages in the PostScript document. |
ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::PsDocument::PsDocument | ( | System::SharedPtr< System::IO::Stream > | inPsStream | ) |
Initializes PsDocument with a stream of PS/EPS file.
inPsStream | Input stream of PS/EPS file. |
|
protected |
|
protectedvirtual |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Clip | ( | System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > | s | ) |
Adds clip to current graphics state.
s | The clipping path. |
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.
s | The clipping path. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ClipRectangle | ( | System::Drawing::RectangleF | rect | ) |
Adds clipping rectangle to current graphics state.
rect | The clipping rectangle. |
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.
text | The text. |
font | The font. |
x | An X coordinate of the text position. |
y | An Y coordinate of the text position. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::ClosePage | ( | ) |
Complete current page.
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.
epsStream | Stream of output EPS file. |
cropBox | The crop box (x0, y0, x, y). |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Draw | ( | System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > | shape | ) |
Draw an arbitrary path.
shape | The path to draw. |
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.
x | X coordinate of center of the arc. |
y | Y coordinate of center of the arc. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
startAngle | A start angle of the arc. |
arcAngle | An angle of the arc. |
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.
image24bpp | The image to draw. Must be in 24bpp RGB image format |
alphaMask1bpp | The image mask. Must be in 1bpp image format. |
transform | The matrix to transform image. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawImage | ( | System::SharedPtr< System::Drawing::Bitmap > | image | ) |
Draw image.
image | The image to draw. |
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.
image | The image to draw. |
transform | The matrix to transform image. |
bkg | Background for image. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawLine | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Draws a line segment.
x1 | X coordinate of the beginning of segment. |
y1 | Y coordinate of the beginning of segment. |
x2 | X coordinate of the end of segment. |
y2 | Y coordinate of the end of segment. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawOval | ( | double | x, |
double | y, | ||
double | width, | ||
double | height | ||
) |
Draws an oval.
x | X coordinate of center of the oval. |
y | Y coordinate of center of the oval. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
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.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawPolygon | ( | System::ArrayPtr< double > | xPoints, |
System::ArrayPtr< double > | yPoints, | ||
int32_t | nPoints | ||
) |
Draws a poligone.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
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.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawPolyline | ( | System::ArrayPtr< double > | xPoints, |
System::ArrayPtr< double > | yPoints, | ||
int32_t | nPoints | ||
) |
Draws a polyline.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::DrawRect | ( | double | x, |
double | y, | ||
double | width, | ||
double | height | ||
) |
Draws a rectangle.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
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.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
arcWidth | A width of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
arcHeight | A height of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
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
image | The image to draw. |
transform | The matrix to transform image. |
transparencyThreshold | A 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. |
ASPOSE_PAGE_SHARED_API System::ArrayPtr<int32_t> Aspose::Page::EPS::PsDocument::ExtractEpsBoundingBox | ( | ) |
ASPOSE_PAGE_SHARED_API System::Drawing::Size Aspose::Page::EPS::PsDocument::ExtractEpsSize | ( | ) |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Fill | ( | System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > | shape | ) |
Fill an arbitrary path.
shape | The path to fill. |
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.
text | The text to add. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fillPaint | The fill used for painting glyphs interior. |
stroke | The stroke used for drawing glyphs contours. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fillPaint | The fill used for painting glyphs interior. |
stroke | The stroke used for drawing glyphs contours. |
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.
text | The text to add. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fillPaint | The fill used for painting glyphs interior. |
stroke | The stroke used for drawing glyphs contours. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fillPaint | The fill used for painting glyphs interior. |
stroke | The stroke used for drawing glyphs contours. |
|
protected |
|
protected |
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.
x | X coordinate of center of the arc. |
y | Y coordinate of center of the arc. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
startAngle | A start angle of the arc. |
arcAngle | An angle of the arc. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillOval | ( | double | x, |
double | y, | ||
double | width, | ||
double | height | ||
) |
Fills an oval.
x | X coordinate of center of the oval. |
y | Y coordinate of center of the oval. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
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.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillPolygon | ( | System::ArrayPtr< double > | xPoints, |
System::ArrayPtr< double > | yPoints, | ||
int32_t | nPoints | ||
) |
Fills a poligone.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::FillRect | ( | double | x, |
double | y, | ||
double | width, | ||
double | height | ||
) |
Fills a rectangle.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
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.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
arcWidth | A width of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
arcHeight | A height of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
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.
text | The text to add. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
font | The font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fill | The fill used for painting glyphs. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fill | The fill used for painting glyphs. |
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.
text | The text to add. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fill | The fill used for painting glyphs. |
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.
text | The text to add. |
///
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
fill | The fill used for painting glyphs. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Initializes PsDocument with a stream and load options.
inPsStream | Input stream of PS/EPS file. |
loadOptions | Set of parameters controlling loading of PS file. |
|
protected |
|
protected |
ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::EPS::PsDocument::get_NumberOfPages | ( | ) | const |
Returns the number of pages in resulting PDF document.
ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Brush> Aspose::Page::EPS::PsDocument::GetPaint | ( | ) |
Gets paint of current graphics state.
<return> Current paint.</return>
ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Pen> Aspose::Page::EPS::PsDocument::GetStroke | ( | ) |
Sets stroke in current graphics state.
brush | The brush used in the stroke. |
width | The width of the stroke. |
Gets stroke of current graphics state.
<return> Current stroke.</return>
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.
|
protected |
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.
filesForMerge | PS/EPS files for merging with this file to an output device. |
device | An output device. |
options | Contains flags that specify output of errors thrown during conversion. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::OpenPage | ( | float | width, |
float | height | ||
) |
Creates new page and make it current one.
width | The width of new page. |
height | The height of new page. |
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.
pageName | The name of new page. If it is null the name o the page will be an order number of the page. |
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.
text | The text to add. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
font | The font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
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.
text | The text to add. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
stroke | The stroke used for drawing glyphs outlines. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
font | System font that will be used to draw text. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
stroke | The stroke used for drawing glyphs outlines. |
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.
text | The text to add. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
stroke | The stroke used for drawing glyphs outlines. |
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.
text | The text to add. |
advances | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
drFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | X coordinate for text origin. |
y | Y coordinate for text origin. |
stroke | The stroke used for drawing glyphs outlines. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
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.
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).
angleRadians | The angle of rotation in radians. |
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).
angleDegrees | The angle of rotation in degrees. |
|
override |
Saves PS/EPS file to a device.
device | An output device. |
options | Contains flags that specify output of errors thrown during conversion. |
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.
epsStream | Stream of output EPS file. |
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.
|
static |
|
static |
|
static |
|
static |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Scale | ( | float | xScale, |
float | yScale | ||
) |
Adds scale to current graphics state (scale current matrix).
xScale | The scale in X axis. |
yScale | The translation in Y axis. |
|
protected |
Initializes PsDocument with a stream and load options.
inPsStream | Input stream of PS/EPS file. |
loadOptions | Set of parameters controlling loading of PS file. |
|
staticprotected |
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.
pageParams | Parameters of the page. In this dictionary can be page size and color etc |
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.
width | The width of page in resulting PostScript file. |
height | The height of page in resulting PostScript file. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetPaint | ( | System::SharedPtr< System::Drawing::Brush > | paint | ) |
Sets paint in current graphics state.
paint | The paint. It can be any subclass of Brush class existed in .NET platform. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetStroke | ( | System::SharedPtr< System::Drawing::Pen > | stroke | ) |
Sets stroke in current graphics state.
stroke | The stroke. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::SetTransform | ( | System::SharedPtr< System::Drawing::Drawing2D::Matrix > | matrix | ) |
Set current transformation to this one.
matrix | The transformation. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Shear | ( | float | shx, |
float | shy | ||
) |
Rotates current graphics state counterclockwise around a point.
angleDegrees | The angle of rotation in degrees. |
point | The point around which rotation will be performed. |
Adds shear transformation to current graphics state (shear current matrix).
shx | The shear in X axis. |
shy | The shear in Y axis. |
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).
matrix | The transformation. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::Translate | ( | float | x, |
float | y | ||
) |
Adds translation to current graphics state (translates current matrix).
x | The translation in X direction. |
y | The translation in Y direction. |
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::WriteGraphicsRestore | ( | ) |
Writes restoring of the current graphics state (See PostScript specification on operator "grestore").
ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::PsDocument::WriteGraphicsSave | ( | ) |
Writes saving of the current graphics state (See PostScript specification on operator "gsave").
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |