All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.convertertopdf.convert.implementation.DocxConverter Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
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