Class ImageConverter

    • Constructor Detail

      • ImageConverter

        public ImageConverter()
    • Method Detail

      • convertImage

        public org.apache.openmeetings.util.process.ProcessResultList convertImage​(BaseFileItem f,
                                                                                   org.apache.openmeetings.util.StoredFile sf,
                                                                                   org.apache.openmeetings.util.process.ProcessResultList logs,
                                                                                   Optional<DoubleConsumer> progress)
                                                                            throws IOException
        Throws:
        IOException
      • convertImageUserProfile

        public org.apache.openmeetings.util.process.ProcessResultList convertImageUserProfile​(File file,
                                                                                              Long userId,
                                                                                              boolean skipConvertion)
                                                                                       throws Exception
        Throws:
        Exception
      • convertDocument

        public org.apache.openmeetings.util.process.ProcessResultList convertDocument​(FileItem f,
                                                                                      File pdf,
                                                                                      org.apache.openmeetings.util.process.ProcessResultList logs,
                                                                                      Optional<DoubleConsumer> progress)
                                                                               throws IOException
        Converts PDF document to the series of images
        Parameters:
        f - - FileItem object to write number of pages and size
        pdf - - input PDF document
        logs - - logs of the conversion
        Returns:
        - result of conversion
        Throws:
        IOException - in case IO exception occurred