PsDocument constructor
Contents
[
Hide
]init
Initializes PsDocument with an input PS/EPS file.
def __init__(self, ps_file_path):
...
| Parameter | Type | Description |
|---|---|---|
| ps_file_path | str | PS/EPS file path. |
init
Initializes PsDocument with a stream of PS/EPS file.
def __init__(self, in_ps_stream):
...
| Parameter | Type | Description |
|---|---|---|
| in_ps_stream | io.RawIOBase | Input stream of PS/EPS file. |
init
Initializes empty PsDocument with initialized page.
def __init__(self, out_ps_file_path, options):
...
| Parameter | Type | Description |
|---|---|---|
| out_ps_file_path | str | The output PS/EPS file path. |
| options | aspose.page.eps.device.PsSaveOptions | A set of parameters controlling saving of PostScript file. |
init
Initializes empty PsDocument with initialized page.
def __init__(self, out_ps_stream, options):
...
| Parameter | Type | Description |
|---|---|---|
| out_ps_stream | io.RawIOBase | Stream where to save PS/EPS file. |
| options | aspose.page.eps.device.PsSaveOptions | A set of parameters controlling saving of PostScript file. |
init
Initializes empty PsDocument.
def __init__(self, out_ps_file_path, options, multipaged):
...
| Parameter | Type | Description |
|---|---|---|
| out_ps_file_path | str | The output PS/EPS file path. |
| options | aspose.page.eps.device.PsSaveOptions | A set of parameters controlling saving of PostScript file. |
| multipaged | bool | If false page will not be initialized. In this case page initialization should be performed via explicit “openPage(width, height) call. |
init
Initializes empty PsDocument.
def __init__(self, out_ps_stream, options, multipaged):
...
| Parameter | Type | Description |
|---|---|---|
| out_ps_stream | io.RawIOBase | Stream where to save PS/EPS file. |
| options | aspose.page.eps.device.PsSaveOptions | A set of parameters controlling saving of PostScript file. |
| multipaged | bool | If false page will not be initialized. In this case page initialization should be performed via explicit “openPage(width, height) call. |
init
Initializes empty PsDocument when the number of Postscript document pages is known in advance.
def __init__(self, out_ps_file_path, options, number_of_pages):
...
| Parameter | Type | Description |
|---|---|---|
| out_ps_file_path | str | The output PS/EPS file path. |
| options | aspose.page.eps.device.PsSaveOptions | A set of parameters controlling saving of PostScript file. |
| number_of_pages | int | The number of pages in the PostScript document. |
init
Initializes empty PsDocument when the number of Postscript document pages is known in advance.
def __init__(self, out_ps_stream, options, number_of_pages):
...
| Parameter | Type | Description |
|---|---|---|
| out_ps_stream | io.RawIOBase | Stream where to save PS/EPS file. |
| options | aspose.page.eps.device.PsSaveOptions | A set of parameters controlling saving of PostScript file. |
| number_of_pages | int | The number of pages in the PostScript document. |
See Also
- module
aspose.page.eps - class
PsDocument