Class DocumentConverter


  • @Component
    public class DocumentConverter
    extends Object
    • Constructor Detail

      • DocumentConverter

        public DocumentConverter()
    • Method Detail

      • convertPDF

        public org.apache.openmeetings.util.process.ProcessResultList convertPDF​(FileItem f,
                                                                                 org.apache.openmeetings.util.StoredFile sf)
                                                                          throws Exception
        Throws:
        Exception
      • convertPDF

        public org.apache.openmeetings.util.process.ProcessResultList convertPDF​(FileItem f,
                                                                                 org.apache.openmeetings.util.StoredFile sf,
                                                                                 org.apache.openmeetings.util.process.ProcessResultList logs,
                                                                                 Optional<DoubleConsumer> progress)
                                                                          throws Exception
        Throws:
        Exception
      • createOfficeManager

        public static void createOfficeManager​(String officePath,
                                               Function<org.jodconverter.core.office.OfficeManager,​org.jodconverter.core.job.ConversionJob> job)
                                        throws org.jodconverter.core.office.OfficeException
        Throws:
        org.jodconverter.core.office.OfficeException
      • doJodConvert

        public org.apache.openmeetings.util.process.ProcessResult doJodConvert​(File in,
                                                                               File out)
        Generates PDF using JOD Library (external library)
        Parameters:
        in - - file to convert
        out - - file to write result
        Returns:
        - result of the conversion as ProcessResult