org.docx4j.spring.boot.Docx4jProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-spring-boot-starter Show documentation
Show all versions of docx4j-spring-boot-starter Show documentation
Spring Boot Starter For Docx4j
/*
* Copyright (c) 2018, hiwepy (https://github.com/hiwepy).
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.docx4j.spring.boot;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(Docx4jProperties.PREFIX)
public class Docx4jProperties {
public static final String PREFIX = "docx4j";
/**
* Enable Docx4j.
*/
private boolean enabled = false;
/**
* Enable Docx4j altChunk.
*/
private boolean altChunk = false;
private boolean landscape = false;
/**
* Enable Docx4j Discover Fonts .
*/
private boolean discoverFonts = false;
/** Font Mapper. */
private Map fontMapper = new LinkedHashMap();
/** Font Fix Mapper. 解决中文乱码问题 */
private Map fontAliasMapper = new LinkedHashMap();
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public boolean isAltChunk() {
return altChunk;
}
public void setAltChunk(boolean altChunk) {
this.altChunk = altChunk;
}
public boolean isLandscape() {
return landscape;
}
public void setLandscape(boolean landscape) {
this.landscape = landscape;
}
public boolean isDiscoverFonts() {
return discoverFonts;
}
public void setDiscoverFonts(boolean discoverFonts) {
this.discoverFonts = discoverFonts;
}
public Map getFontMapper() {
return fontMapper;
}
public void setFontMapper(Map fontMapper) {
this.fontMapper = fontMapper;
}
public Map getFontAliasMapper() {
return fontAliasMapper;
}
public void setFontAliasMapper(Map fontAliasMapper) {
this.fontAliasMapper = fontAliasMapper;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy