org.convertertopdf.convert.implementation.DocxConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convertertopdf Show documentation
Show all versions of convertertopdf Show documentation
A component 100% free, which convert several file formats to PDF
package org.convertertopdf.convert.implementation;
import org.convertertopdf.convert.OfficeConverter;
import org.convertertopdf.management.ConverterFactory;
import org.convertertopdf.util.EFormat;
import org.jodconverter.document.DefaultDocumentFormatRegistry;
import org.jodconverter.document.DocumentFormat;
/**
* Class responsable to convert DOCX files to PDF.
*
* @author Thiago Leite e-mail: [email protected]
*/
public final class DocxConverter extends OfficeConverter {
/**
* This constructor should not be used directly. Only {@link ConverterFactory} is allowed to use it.
* @param skipValidation Indicates that validation should not be performed
*/
public DocxConverter(boolean skipValidation) {
super(skipValidation);
}
/** {@inheritDoc} */
public EFormat getFormat() {
return EFormat.DOCX;
}
/** {@inheritDoc} */
@Override
protected DocumentFormat getDocumentFormat() {
return DefaultDocumentFormatRegistry.DOCX;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy