Package chemaxon.office.jchemoffice
Interface IDocumentConverter
The IDocumentConverter interface offers the functionality to convert the
structures in the given document to a new format.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconvertAll(chemaxon.formats.internal.image.ImageExporter imageWriter) Deprecated, for removal: This API element is subject to removal in a future version.Use the endpoints with String parameter(s).voidconvertAll(chemaxon.formats.internal.image.ImageExporter imageWriter, IConversionOptions conversionOption) Deprecated, for removal: This API element is subject to removal in a future version.Use the endpoints with String parameter(s).voidconvertAll(String moleculeImageSettingsFormat) Converts the rendering settings of all molecule structures in the given document to the format given in the moleculeImageSettingsFormat parametervoidconvertAll(String moleculeImageSettingsFormat, IConversionOptions conversionOption) Converts the rendering settings of all molecule structures in the given document to the format given in the moleculeImageSettingsFormat parameter
-
Method Details
-
convertAll
Converts the rendering settings of all molecule structures in the given document to the format given in the moleculeImageSettingsFormat parameterThe 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");- Parameters:
moleculeImageSettingsFormat- - The format string of the molecule image rendering- Throws:
Exception
-
convertAll
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2027) void convertAll(chemaxon.formats.internal.image.ImageExporter imageWriter) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Use the endpoints with String parameter(s).Converts the rendering settings of all molecule structures in the given document to the format given in the imageWriter parameterThe 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());- Parameters:
imageWriter- - The image exporter with the image export options- Throws:
Exception
-
convertAll
void convertAll(String moleculeImageSettingsFormat, IConversionOptions conversionOption) throws Exception Converts the rendering settings of all molecule structures in the given document to the format given in the moleculeImageSettingsFormat parameterThe 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());- Parameters:
moleculeImageSettingsFormat- - The format string of the molecule image rendering- Throws:
Exception
-
convertAll
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2027) void convertAll(chemaxon.formats.internal.image.ImageExporter imageWriter, IConversionOptions conversionOption) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Use the endpoints with String parameter(s).Converts the rendering settings of all molecule structures in the given document to the format given in the imageWriter parameterThe 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));- Parameters:
imageWriter- - The image exporter with the image export optionsconversionOption- - Options for the conversion i.e. keepSize- Throws:
Exception
-