@PublicAPI public interface IDocumentConverter
Modifier and Type | Method and Description |
---|---|
void |
convertAll(ImageExporter imageWriter)
Converts the rendering settings of all molecule structures in the given
document to the format given in the imageWriter parameter
|
void |
convertAll(ImageExporter imageWriter,
IConversionOptions conversionOption)
Converts the rendering settings of all molecule structures in the given
document to the format given in the imageWriter parameter
|
void |
convertAll(java.lang.String moleculeImageSettingsFormat)
Converts the rendering settings of all molecule structures in the given
document to the format given in the moleculeImageSettingsFormat parameter
|
void |
convertAll(java.lang.String moleculeImageSettingsFormat,
IConversionOptions conversionOption)
Converts the rendering settings of all molecule structures in the given
document to the format given in the moleculeImageSettingsFormat parameter
|
void convertAll(java.lang.String moleculeImageSettingsFormat) throws java.lang.Exception
The following is one example of the use of the ConvertAll. The code:
IDocumentConverter converter = DocumentHandlerFactory.createDocumentConverter(DocumentType.PPT, path); converter.ConvertAll( "emf:marginSize1.6,wireThickness0.03333333333333333,ballstick,bondl14.4,atsiz0.35714285714285715,bondHashSpacing0.1388888888888889,boldbondw2.0,atomFont:Arial-PLAIN-10,bondw0.09350649350649351");
moleculeImageSettingsFormat
- - The format string of the molecule image renderingjava.lang.Exception
void convertAll(ImageExporter imageWriter) throws java.lang.Exception
The following is one example of the use of the ConvertAll. The code:
IDocumentConverter converter = DocumentHandlerFactory.createDocumentConverter(DocumentType.PPT, path); JpegExporter exporter = JpegExporter.builder().aromatization(AromatizationMethod.AROMATIZATION_GENERAL) .hydrogenize(HydrogenizeOption.EXPLICITIZE).showValenceError().build(); converter.ConvertAll(exporter, new ConversionOption());
imageWriter
- - The image exporter with the image export optionsjava.lang.Exception
void convertAll(java.lang.String moleculeImageSettingsFormat, IConversionOptions conversionOption) throws java.lang.Exception
The following is one example of the use of the ConvertAll. The code:
IDocumentConverter converter = DocumentHandlerFactory.createDocumentConverter(DocumentType.PPT, path); converter.ConvertAll( "emf:marginSize1.6,wireThickness0.03333333333333333,ballstick,bondl14.4,atsiz0.35714285714285715,bondHashSpacing0.1388888888888889,boldbondw2.0,atomFont:Arial-PLAIN-10,bondw0.09350649350649351", new ConversionOption());
moleculeImageSettingsFormat
- - The format string of the molecule image rendering-
- Options for the conversion i.e. keepSizejava.lang.Exception
void convertAll(ImageExporter imageWriter, IConversionOptions conversionOption) throws java.lang.Exception
The following is one example of the use of the ConvertAll. The code:
IDocumentConverter converter = DocumentHandlerFactory.createDocumentConverter(DocumentType.PPT, path); JpegExporter exporter = JpegExporter.builder().aromatization(AromatizationMethod.AROMATIZATION_GENERAL) .hydrogenize(HydrogenizeOption.EXPLICITIZE).showValenceError().build(); converter.ConvertAll(exporter, new ConversionOption(false));
imageWriter
- - The image exporter with the image export optionsconversionOption
- - Options for the conversion i.e. keepSizejava.lang.Exception