public class PsDocument extends Document
This class encapsulates PS/EPS documents.
Constructor and Description |
---|
PsDocument(InputStream psStream)
Initializes
PsDocument with a stream of PS/EPS file. |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfPages()
Gets a quantity of pages in resulting PDF document.
|
void |
save(Device device,
SaveOptions options)
Saves PS/EPS file to a device.
|
void |
setInputStream(InputStream is)
Specifies an input stream.
|
isLicensed
public PsDocument(InputStream psStream) throws IOException
Initializes PsDocument
with a stream of PS/EPS file.
psStream
- Stream of PS/EPS file.IOException
public void setInputStream(InputStream is) throws IOException
Specifies an input stream.
is
- Input stream of PS/EPS file.IOException
public void save(Device device, SaveOptions options) throws Exception
Saves PS/EPS file to a device.
public int getNumberOfPages()
Gets a quantity of pages in resulting PDF document.
Copyright © 2020 Aspose. All Rights Reserved.