Interface Converter

All Known Implementing Classes:
ConverterHttp

public interface Converter
Java client library interface for Plutext PDF Converter
Since:
3.3.0
  • Method Summary

    Modifier and Type Method Description
    void convert​(byte[] bytesIn, Format fromFormat, Format toFormat, java.io.OutputStream os)
    Convert byte array fromFormat to toFormat, streaming result to OutputStream os.
    void convert​(java.io.File f, Format fromFormat, Format toFormat, java.io.OutputStream os)
    Convert File fromFormat to toFormat, streaming result to OutputStream os.
    void convert​(java.io.InputStream instream, Format fromFormat, Format toFormat, java.io.OutputStream os)
    Convert InputStream fromFormat to toFormat, streaming result to OutputStream os.
  • Method Details

    • convert

      void convert​(java.io.File f, Format fromFormat, Format toFormat, java.io.OutputStream os) throws java.io.IOException, ConversionException
      Convert File fromFormat to toFormat, streaming result to OutputStream os. fromFormat supported: DOC, DOCX toFormat supported: PDF
      Parameters:
      f -
      fromFormat -
      toFormat -
      os -
      Throws:
      java.io.IOException
      ConversionException
    • convert

      void convert​(java.io.InputStream instream, Format fromFormat, Format toFormat, java.io.OutputStream os) throws java.io.IOException, ConversionException
      Convert InputStream fromFormat to toFormat, streaming result to OutputStream os. fromFormat supported: DOC, DOCX toFormat supported: PDF Note this uses a non-repeatable request entity, so it may not be suitable (depending on the endpoint config).
      Parameters:
      instream -
      fromFormat -
      toFormat -
      os -
      Throws:
      java.io.IOException
      ConversionException
    • convert

      void convert​(byte[] bytesIn, Format fromFormat, Format toFormat, java.io.OutputStream os) throws java.io.IOException, ConversionException
      Convert byte array fromFormat to toFormat, streaming result to OutputStream os. fromFormat supported: DOC, DOCX toFormat supported: PDF
      Parameters:
      bytesIn -
      fromFormat -
      toFormat -
      os -
      Throws:
      java.io.IOException
      ConversionException