PsDocument class
PsDocument class
This class encapsulates PS/EPS documents.
Inheritance: PsDocument
→
Document
The PsDocument type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes empty PsDocument with initialized page. |
init | Initializes empty PsDocument . |
init | Initializes empty PsDocument when the number of Postscript document pages is known in advance. |
init | Initializes PsDocument with a stream of PS/EPS file. |
Properties
Property | Description |
---|---|
number_of_pages | Returns the number of pages in resulting PDF document. |
Methods
Method | Description |
---|---|
save | Saves PS/EPS file to a device. |
save | 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. |
save_image_as_eps | Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from input stream to EPS output stream. |
save_image_as_eps | Saves PNG/JPEG/TIFF/BMP/GIF/EMF image from file to EPS file. |
save_image_as_eps | Saves Bitmap object to EPS file. |
save_image_as_eps | Saves Bitmap object to EPS output stream. |
open_page | Creates new page and make it current one. |
open_page | Creates new page with document’s size and make it current one. |
rotate | Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix). |
rotate | Adds rotation counterclockwise about the origin to current graphics state (rotate current matrix). |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
fill_text | Adds a text string by filling interrior of glyphs. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
outline_text | Adds a text string by drawing glyphs contours. |
fill_and_stroke_text | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
fill_and_stroke_text | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
fill_and_stroke_text | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
fill_and_stroke_text | Adds a text string by filling interrior of glyphs and drawing glyphs contours. |
draw_polyline | Draws a polyline. |
draw_polyline | Draws a polyline. |
draw_polygon | Draws a polygon. |
draw_polygon | Draws a poligone. |
fill_polygon | Fills a poligone. |
fill_polygon | Fills a poligone. |
draw_image | Draw image. |
draw_image | Draw transformed image with background. |
get_xmp_metadata | Reads PS/EPS file and extracts XmpMetdata if it already exists or add new one if it doesn’t exist. |
extract_eps_size | Reads EPS file and extracts a size of EPS image from %%BoundingBox comment or default page size (595, 842) if it doesn’t exist. |
resize_eps | 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. |
extract_eps_bounding_box | 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. |
crop_eps | Crops given PsDocument as EPS file.It saves initial EPS file with updated existing %%BoundingBox or new one will be created. |
set_page_size | Sets page size. To create pages with different sizes in one document use PsDocument.SetPageDevice method just after this method. |
close_page | Complete current page. |
write_graphics_save | Writes saving of the current graphics state (See PostScript specification on operator “gsave”). |
write_graphics_restore | Writes restoring of the current graphics state (See PostScript specification on operator “grestore”). |
set_transform | Set current transformation to this one. |
transform | Adds transformation to current graphics state (concatenates this matrix with current one). |
translate | Adds translation to current graphics state (translates current matrix). |
scale | Adds scale to current graphics state (scale current matrix). |
shear | Adds shear transformation to current graphics state (shear current matrix). |
clip | Adds clip to current graphics state. |
clip_text | Adds clip from an outline of given text in given font. |
clip_rectangle | Adds clipping rectangle to current graphics state. |
clip_and_new_path | 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. |
set_paint | Sets paint in current graphics state. |
get_paint | Gets paint of current graphics state. |
set_stroke | Sets stroke in current graphics state. |
get_stroke | Gets stroke of current graphics state. |
fill | Fill an arbitrary path. |
draw | Draw an arbitrary path. |
draw_arc | Draws an arc. |
draw_line | Draws a line segment. |
draw_oval | Draws an oval. |
draw_rect | Draws a rectangle. |
draw_round_rect | Draws a round rectangle. |
fill_arc | Fills an arc. |
fill_oval | Fills an oval. |
fill_rect | Fills a rectangle. |
fill_round_rect | Fills a round rectangle. |
draw_transparent_image | Draw transformed transparent image. If image doesn’t have Alpha channel it will be drawn as opaque image |
draw_explicit_image_mask | Draw masked image. |
merge | Merges PS/EPS files to a device. |
See Also
- module
aspose.page.eps
- class
Document
- class
PsDocument