com.aspose.eps

Class Ps2PdfConverterOptions



  • public class Ps2PdfConverterOptions
    extends Object

    This class is necessary for transferring parameters to Ps2PdfConverter.

    • Constructor Detail

      • Ps2PdfConverterOptions

        public Ps2PdfConverterOptions(InputStream psStream,
                                      OutputStream pdfStream)

        Initialize new Ps2PdfConverterOptions instance from the psStream stream.

        Parameters:
        psStream - Input stream object that contains PS/EPS commands.
        pdfStream - Output stream object that will be used for writing PDF document.
      • Ps2PdfConverterOptions

        public Ps2PdfConverterOptions(InputStream psStream,
                                      OutputStream pdfStream,
                                      boolean supressErrors)

        Initialize new Ps2PdfConverterOptions instance from the psStream stream.

        Parameters:
        psStream - Input stream object that contains PS/EPS commands.
        pdfStream - Output stream object that will be used for writing PDF document.
        supressErrors - If true conversion will be continued despite of non-critical errors. The list of non-critical errors will be available after execution of Ps2PdfConverter.
    • Method Detail

      • getPsStream

        public InputStream getPsStream()

        Returns input stream that contains PS/EPS commands.

        Returns:
        InputStream object
      • isSupressErrors

        public boolean isSupressErrors()

        Returns a value indicating whether errors will be suppressed during conversion.

        Returns:
        boolean value
      • getPageSize

        public Dimension getPageSize()

        Returns a size of resulting PDF page.

        Returns:
        page dimensions.
      • setPageSize

        public void setPageSize(Dimension pageSize)

        Specifies a size of resulting PDF page.

        Parameters:
        pageSize - Page dimensions.
      • getPdfStream

        public OutputStream getPdfStream()

        Returns an output stream that contains PDF document.

        Returns:
        OutputStream object.
      • setSupressErrors

        public void setSupressErrors(boolean supressErrors)

        Specifies the flag that indicates whether errors will be suppressed during conversion.

        Parameters:
        supressErrors - Boolean value.
      • setDebug

        public void setDebug(boolean debug)

        Specifies the flag that allows output of warnings and messages during conversion.

        Parameters:
        debug - Boolean value.
      • getFontsFolders

        public String[] getFontsFolders()

        Returns additional fonts folders where converter should find fonts for input PostScript file. Default folder is standard fonts folder where OS finds fonts for internal needs.

        Returns:
        An array of fonts folders.
      • setFontsFolders

        public void setFontsFolders(String[] fontsFolders)

        Specifies additional fonts folders where converter should find fonts for input PostScript file. Default folder is standard fonts folder where OS finds fonts for internal needs.

        Parameters:
        fontsFolders - An array of fonts folders.