public interface IPicApportPlugin
Modifier and Type | Method and Description |
---|---|
java.util.List<OtherFormatsDescriptor> |
init(java.io.File pluginDirectory,
java.util.Properties props,
IPicApportPlugInLogger logger)
author Eric 11.08.2014
A PicApport plugin must provide at lest one entry in List<OtherFormatsDescriptor>
Example
public List<OtherFormatsDescriptor> init(File pluginDirectory, Properties props, IPicApportPlugInLogger logger) {
this.logger = logger;
if(props ! |
java.util.List<OtherFormatsDescriptor> init(java.io.File pluginDirectory, java.util.Properties props, IPicApportPlugInLogger logger)
A PicApport plugin must provide at lest one entry in List<OtherFormatsDescriptor>
Example
public List<OtherFormatsDescriptor> init(File pluginDirectory, Properties props, IPicApportPlugInLogger logger) {
this.logger = logger;
if(props != null) {
setResolutionFromString(props.getProperty("pdf.resolution"));
}
return Arrays.asList(
new OtherFormatsDescriptor[] {
new OtherFormatsDescriptor(".pdf",
"application/pdf",
true,
"PicApport PDF plugin",
"(c) 2015 Contecon Software GmbH",
"1.0",
props),
});
}
pluginDirectory
- If a plugin need more date than a .properties file these file should be located in the pluginDirectoryprops
- If a .properties-file with the same name of the plugin exists, it will be loaded by PicApport and provided to the init methodlogger
- All informational output by the plugin should be done via the logger provided.