com.aspose.eps

Class PsDocument



  • public class PsDocument
    extends Document

    This class encapsulates PS/EPS documents.

    • Constructor Detail

      • PsDocument

        public PsDocument(InputStream psStream)
                   throws IOException

        Initializes PsDocument with a stream of PS/EPS file.

        Parameters:
        psStream - Stream of PS/EPS file.
        Throws:
        IOException
    • Method Detail

      • setInputStream

        public void setInputStream(InputStream is)
                            throws IOException

        Specifies an input stream.

        Parameters:
        is - Input stream of PS/EPS file.
        Throws:
        IOException
      • save

        public void save(Device device,
                         SaveOptions options)
                  throws Exception

        Saves PS/EPS file to a device.

        Specified by:
        save in class Document
        Parameters:
        device - An output device.
        options - Contains flags that specify output of errors thrown during conversion.
        Throws:
        Exception
      • getNumberOfPages

        public int getNumberOfPages()

        Gets a quantity of pages in resulting PDF document.

        Returns:
        the number of pages.