Aspose::Page::EPS::PsDocument class
Contents
[
Hide
]PsDocument class
This class encapsulates PS/EPS documents.
class PsDocument : public Aspose::Page::Document
Methods
Method | Description |
---|---|
Clip(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) | Adds clip to current graphics state. |
ClipAndNewPath(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) | 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. |
ClipRectangle(System::Drawing::RectangleF) | Adds clipping rectangle to current graphics state. |
ClipText(System::String, System::SharedPtr<System::Drawing::Font>, float, float) | Adds clip from an outline of given text in given font. |
ClosePage() | Complete current page. |
CropEps(System::String, System::ArrayPtr<float>) | Crops given PsDocument as EPS file. It saves initial EPS file with updated existing %BoundingBox or new one will be created. |
CropEps(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<float>) | Crops given PsDocument as EPS file. It saves initial EPS file with updated existing %BoundingBox or new one will be created. |
Draw(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) | Draw an arbitrary path. |
DrawArc(double, double, double, double, double, double) | Draws an arc. |
DrawExplicitImageMask(System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::Drawing::Drawing2D::Matrix>) | Draw masked image. |
DrawImage(System::SharedPtr<System::Drawing::Bitmap>) | Draw image. |
DrawImage(System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::Drawing::Drawing2D::Matrix>, System::Drawing::Color) | Draw transformed image with background. |
DrawLine(double, double, double, double) | Draws a line segment. |
DrawOval(double, double, double, double) | Draws an oval. |
DrawPolygon(System::ArrayPtr<int32_t>, System::ArrayPtr<int32_t>, int32_t) | Draws a polygon. |
DrawPolygon(System::ArrayPtr<double>, System::ArrayPtr<double>, int32_t) | Draws a poligone. |
DrawPolyline(System::ArrayPtr<int32_t>, System::ArrayPtr<int32_t>, int32_t) | Draws a polyline. |
DrawPolyline(System::ArrayPtr<double>, System::ArrayPtr<double>, int32_t) | Draws a polyline. |
DrawRect(double, double, double, double) | Draws a rectangle. |
DrawRoundRect(double, double, double, double, double, double) | Draws a round rectangle. |
DrawTransparentImage(System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::Drawing::Drawing2D::Matrix>, int32_t) | Draw transformed transparent image. If image doesn’t have Alpha channel it will be drawn as opaque image. |
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. |
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. |
ExtractText(System::SharedPtr<SaveOptions>, int32_t, int32_t) | Extract text from PS file. The text can be extracted only if it is written with Type 42 (TrueType) font or Type 0 font with Type 42 fonts in its Vector Map. |
Fill(System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath>) | Fill an arbitrary path. |
FillAndStrokeText(System::String, System::SharedPtr<System::Drawing::Font>, float, float, System::SharedPtr<System::Drawing::Brush>, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
FillAndStrokeText(System::String, System::ArrayPtr<float>, System::SharedPtr<System::Drawing::Font>, float, float, System::SharedPtr<System::Drawing::Brush>, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
FillAndStrokeText(System::String, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float, System::SharedPtr<System::Drawing::Brush>, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
FillAndStrokeText(System::String, System::ArrayPtr<float>, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float, System::SharedPtr<System::Drawing::Brush>, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
FillArc(double, double, double, double, double, double) | Fills an arc. |
FillOval(double, double, double, double) | Fills an oval. |
FillPolygon(System::ArrayPtr<int32_t>, System::ArrayPtr<int32_t>, int32_t) | Fills a poligone. |
FillPolygon(System::ArrayPtr<double>, System::ArrayPtr<double>, int32_t) | Fills a poligone. |
FillRect(double, double, double, double) | Fills a rectangle. |
FillRoundRect(double, double, double, double, double, double) | Fills a round rectangle. |
FillText(System::String, System::SharedPtr<System::Drawing::Font>, float, float) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::ArrayPtr<float>, System::SharedPtr<System::Drawing::Font>, float, float) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::ArrayPtr<float>, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::SharedPtr<System::Drawing::Font>, float, float, System::SharedPtr<System::Drawing::Brush>) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::ArrayPtr<float>, System::SharedPtr<System::Drawing::Font>, float, float, System::SharedPtr<System::Drawing::Brush>) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float, System::SharedPtr<System::Drawing::Brush>) | Adds a text string by filling interrior of glyphs. |
FillText(System::String, System::ArrayPtr<float>, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float, System::SharedPtr<System::Drawing::Brush>) | Adds a text string by filling interrior of glyphs. |
get_InputStream() | Initializes PsDocument with a stream and load options. |
get_NumberOfPages() const | Returns the number of pages in resulting PDF document. |
GetPaint() | Gets paint of current graphics state. |
GetStroke() | Sets stroke in current graphics state. |
GetXmpMetadata() | Reads PS/EPS file and extracts XmpMetdata if it already exists or add new one if it doesn’t exist. |
MergeToPdf(System::String, System::ArrayPtr<System::String>, System::SharedPtr<SaveOptions>) | Merges PS/EPS files to a device. |
MergeToPdf(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<System::String>, System::SharedPtr<SaveOptions>) | Merges PS/EPS files to a device. |
OpenPage(float, float) | Creates new page and make it current one. |
OpenPage(System::String) | Creates new page with document’s size and make it current one. |
OutlineText(System::String, System::SharedPtr<System::Drawing::Font>, float, float) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::ArrayPtr<float>, System::SharedPtr<System::Drawing::Font>, float, float) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::ArrayPtr<float>, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::SharedPtr<System::Drawing::Font>, float, float, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::ArrayPtr<float>, System::SharedPtr<System::Drawing::Font>, float, float, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by drawing glyphs contours. |
OutlineText(System::String, System::ArrayPtr<float>, System::SharedPtr<Aspose::Page::Font::DrFont>, float, float, System::SharedPtr<System::Drawing::Pen>) | Adds a text string by drawing glyphs contours. |
PsDocument(System::String, System::SharedPtr<Device::PsSaveOptions>) | Initializes empty PsDocument with initialized page. |
PsDocument(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Device::PsSaveOptions>) | Initializes empty PsDocument with initialized page. |
PsDocument(System::String, System::SharedPtr<Device::PsSaveOptions>, bool) | Initializes empty PsDocument. |
PsDocument(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Device::PsSaveOptions>, bool) | Initializes empty PsDocument. |
PsDocument(System::String, System::SharedPtr<Device::PsSaveOptions>, int32_t) | Initializes empty PsDocument when the number of Postscript document pages is known in advance. |
PsDocument(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Device::PsSaveOptions>, int32_t) | Initializes empty PsDocument when the number of Postscript document pages is known in advance. |
PsDocument(System::String) | Initializes PsDocument with an input PS/EPS file. |
PsDocument(System::SharedPtr<System::IO::Stream>) | Initializes PsDocument with a stream of PS/EPS file. |
ResizeEps(System::String, System::Drawing::SizeF, 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. |
ResizeEps(System::SharedPtr<System::IO::Stream>, System::Drawing::SizeF, 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. |
Rotate(float) | Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix). |
Rotate(int32_t) | Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix). |
Save(System::SharedPtr<System::IO::Stream>) | 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. |
Save() | Saves given PsDocument as EPS file. This method is used only when PsDocument was created from scratch. |
SaveAsImage(System::SharedPtr<Device::ImageSaveOptions>) | Saves PS/EPS file to images bytes arrays. |
SaveAsPdf(System::String, System::SharedPtr<Device::PdfSaveOptions>) | Saves PS/EPS file to PDF file. |
SaveAsPdf(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Device::PdfSaveOptions>) | Saves PS/EPS file to PDF stream. |
static SaveImageAsEps(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::IO::Stream>, System::SharedPtr<Device::PsSaveOptions>) | Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from input stream to EPS output stream. |
static SaveImageAsEps(System::String, System::String, System::SharedPtr<Device::PsSaveOptions>) | Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from file to EPS file. |
static SaveImageAsEps(System::SharedPtr<System::Drawing::Bitmap>, System::String, System::SharedPtr<Device::PsSaveOptions>) | Saves Bitmap object to EPS file. |
static SaveImageAsEps(System::SharedPtr<System::Drawing::Bitmap>, System::SharedPtr<System::IO::Stream>, System::SharedPtr<Device::PsSaveOptions>) | Saves Bitmap object to EPS output stream. |
Scale(float, float) | Adds scale to current graphics state (scale current matrix). |
set_InputStream(System::SharedPtr<System::IO::Stream>) | Initializes PsDocument with a stream and load options. |
SetPageDevice(System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object>>>) | Sets page device parameters (see operator “setpagedevice” PostScript spesification). Among these can be page size and color etc. |
SetPageSize(float, float) | Sets page size. To create pages with different sizes in one document use SetPageDevice method just after this method. |
SetPaint(System::SharedPtr<System::Drawing::Brush>) | Sets paint in current graphics state. |
SetStroke(System::SharedPtr<System::Drawing::Pen>) | Sets stroke in current graphics state. |
SetTransform(System::SharedPtr<System::Drawing::Drawing2D::Matrix>) | Set current transformation to this one. |
Shear(float, float) | Rotates current graphics state counterclockwise around a point. |
Transform(System::SharedPtr<System::Drawing::Drawing2D::Matrix>) | Adds transformation to current graphics state (concatenates this matrix with current one). |
Translate(float, float) | Adds translation to current graphics state (translates current matrix). |
WriteGraphicsRestore() | Writes restoring of the current graphics state (See PostScript specification on operator “grestore”). |
WriteGraphicsSave() | Writes saving of the current graphics state (See PostScript specification on operator “gsave”). |
See Also
- Class Document
- Namespace Aspose::Page::EPS
- Library Aspose.Page for C++