예제 #1
0
 private void ConvertAnnotation(ItemTitleInfo titleInfo, EPubFileV3 epubFile)
 {
     if (titleInfo.Annotation != null)
     {
         epubFile.BookInformation.Description = new Description {
             DescInfo = titleInfo.Annotation.ToString()
         };
         var converterSettings = new ConverterOptionsV3
         {
             CapitalDrop       = Settings.CommonSettings.CapitalDrop,
             Images            = Images,
             MaxSize           = Settings.V3Settings.HTMLFileMaxSize,
             ReferencesManager = _referencesManager,
         };
         var annotationConverter = new AnnotationConverterV3();
         var annotationPage      = new AnnotationPageFileV3
         {
             BookAnnotation = (Div)annotationConverter.Convert(titleInfo.Annotation,
                                                               new AnnotationConverterParamsV3 {
                 Settings = converterSettings, Level = 1
             })
         };
         StructureManager.AddAnnotationPage(annotationPage);
     }
 }
 private void ConvertAnnotation(ItemTitleInfo titleInfo, EPubFileV3 epubFile)
 {
     if (titleInfo.Annotation != null)
     {
         epubFile.BookInformation.Description = new Description {DescInfo = titleInfo.Annotation.ToString()};
         var converterSettings = new ConverterOptionsV3
         {
             CapitalDrop = Settings.CommonSettings.CapitalDrop,
             Images = Images,
             MaxSize = Settings.V3Settings.HTMLFileMaxSize,
             ReferencesManager = _referencesManager,
         };
         var annotationConverter = new AnnotationConverterV3();
         var annotationPage = new AnnotationPageFileV3
         {
             BookAnnotation = (Div)annotationConverter.Convert(titleInfo.Annotation,
                 new AnnotationConverterParamsV3 { Settings = converterSettings, Level = 1 })
         };
         StructureManager.AddAnnotationPage(annotationPage);
     }
 }