PsDocument constructor

init

Initializes PsDocument with an input PS/EPS file.

def __init__(self, ps_file_path):
    ...
ParameterTypeDescription
ps_file_pathstrPS/EPS file path.

init

Initializes PsDocument with a stream of PS/EPS file.

def __init__(self, in_ps_stream):
    ...
ParameterTypeDescription
in_ps_streamio.RawIOBaseInput stream of PS/EPS file.

init

Initializes empty PsDocument with initialized page.

def __init__(self, out_ps_file_path, options):
    ...
ParameterTypeDescription
out_ps_file_pathstrThe output PS/EPS file path.
optionsaspose.page.eps.device.PsSaveOptionsA set of parameters controlling saving of PostScript file.

init

Initializes empty PsDocument with initialized page.

def __init__(self, out_ps_stream, options):
    ...
ParameterTypeDescription
out_ps_streamio.RawIOBaseStream where to save PS/EPS file.
optionsaspose.page.eps.device.PsSaveOptionsA set of parameters controlling saving of PostScript file.

init

Initializes empty PsDocument.

def __init__(self, out_ps_file_path, options, multipaged):
    ...
ParameterTypeDescription
out_ps_file_pathstrThe output PS/EPS file path.
optionsaspose.page.eps.device.PsSaveOptionsA set of parameters controlling saving of PostScript file.
multipagedboolIf 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):
    ...
ParameterTypeDescription
out_ps_streamio.RawIOBaseStream where to save PS/EPS file.
optionsaspose.page.eps.device.PsSaveOptionsA set of parameters controlling saving of PostScript file.
multipagedboolIf 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):
    ...
ParameterTypeDescription
out_ps_file_pathstrThe output PS/EPS file path.
optionsaspose.page.eps.device.PsSaveOptionsA set of parameters controlling saving of PostScript file.
number_of_pagesintThe 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):
    ...
ParameterTypeDescription
out_ps_streamio.RawIOBaseStream where to save PS/EPS file.
optionsaspose.page.eps.device.PsSaveOptionsA set of parameters controlling saving of PostScript file.
number_of_pagesintThe number of pages in the PostScript document.

See Also