Interface IDocumentConverter


@PublicAPI public interface IDocumentConverter
The IDocumentConverter interface offers the functionality to convert the structures in the given document to a new format.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    convertAll(chemaxon.marvin.io.image.ImageExporter imageWriter)
    Converts the rendering settings of all molecule structures in the given document to the format given in the imageWriter parameter
    void
    convertAll(chemaxon.marvin.io.image.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(String moleculeImageSettingsFormat)
    Converts the rendering settings of all molecule structures in the given document to the format given in the moleculeImageSettingsFormat parameter
    void
    convertAll(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

      void convertAll(String moleculeImageSettingsFormat) throws Exception
      Converts the rendering settings of all molecule structures in the given document to the format given in the moleculeImageSettingsFormat parameter

      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");
       
      Parameters:
      moleculeImageSettingsFormat - - The format string of the molecule image rendering
      Throws:
      Exception
    • convertAll

      void convertAll(chemaxon.marvin.io.image.ImageExporter imageWriter) throws Exception
      Converts the rendering settings of all molecule structures in the given document to the format given in the imageWriter parameter

      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());
       
      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 parameter

      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());
       
      Parameters:
      moleculeImageSettingsFormat - - The format string of the molecule image rendering
      Throws:
      Exception
    • convertAll

      void convertAll(chemaxon.marvin.io.image.ImageExporter imageWriter, IConversionOptions conversionOption) throws Exception
      Converts the rendering settings of all molecule structures in the given document to the format given in the imageWriter parameter

      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));
       
      Parameters:
      imageWriter - - The image exporter with the image export options
      conversionOption - - Options for the conversion i.e. keepSize
      Throws:
      Exception