Class DocumentConverter
- java.lang.Object
-
- org.apache.openmeetings.core.converter.DocumentConverter
-
@Component public class DocumentConverter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationDaocfgDao
-
Constructor Summary
Constructors Constructor Description DocumentConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.openmeetings.util.process.ProcessResultListconvertPDF(FileItem f, org.apache.openmeetings.util.StoredFile sf)org.apache.openmeetings.util.process.ProcessResultListconvertPDF(FileItem f, org.apache.openmeetings.util.StoredFile sf, org.apache.openmeetings.util.process.ProcessResultList logs, Optional<DoubleConsumer> progress)static voidcreateOfficeManager(String officePath, Function<org.jodconverter.core.office.OfficeManager,org.jodconverter.core.job.ConversionJob> job)org.apache.openmeetings.util.process.ProcessResultdoJodConvert(File in, File out)Generates PDF using JOD Library (external library)
-
-
-
Field Detail
-
cfgDao
@Autowired protected ConfigurationDao cfgDao
-
-
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
-
-