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 |
merge(String[] filesForMerge,
Device device,
SaveOptions options)
Merges PS/EPS files to a device.
|
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
- I/O exception.public void setInputStream(InputStream is) throws IOException
Specifies an input stream.
is
- Input stream of PS/EPS file.IOException
- I/O exception.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.
public void merge(String[] filesForMerge, Device device, SaveOptions options) throws Exception
Merges PS/EPS files to a device.
filesForMerge
- PS/EPS files for merging with this file to an output device.device
- An output device.options
- Contains flags that specify output of errors thrown during conversion.Exception
Copyright © 2022 Aspose. All Rights Reserved.