com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class HtmlSaveOptions

    • Constructor Summary

      Constructors 
      Constructor and Description
      HtmlSaveOptions()
      Initializes a new instance of the HtmlSaveOptions class.
      HtmlSaveOptions(boolean fixedLayout)
      Initializes a new instance of the HtmlSaveOptions class.
      HtmlSaveOptions(int documentType)
      Initializes a new instance of the HtmlSaveOptions class.
      HtmlSaveOptions(int documentType, boolean fixedLayout)
      Initializes a new instance of the HtmlSaveOptions class.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      int getAdditionalMarginWidthInPoints()
      Deprecated. 
      AdditionalMarginWidthInPoints is deprecated, please use PageMarginIfAny instead.
      int getAntialiasingProcessing()
      This parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML
      int getBatchSize()
      Defines batch size if batched conversion is applicable to source and destination formats pair.
      boolean getCompressSvgGraphicsIfAny()
      Gets the flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving Value: The HtmlDocumentType.
      boolean getConvertMarkedContentToLayers()
      If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with "data-pdflayer" attribute specifying a layer name.
      String getCssClassNamesPrefix()
      When PDFtoHTML converter generates result CSSs, CSS class names (something like ".stl_01 {}" ... ".stl_NN {}) are generated and used in result CSS.
      HtmlSaveOptions.CssSavingStrategy getCustomCssSavingStrategy()
      This field can contain saving strategy that must be used (if present) during conversion of Pdf to Html for handling of saving of CSSes related to created HTML document as whole or to it's pages(if several HTMLpages are generated) If You want handle CSS file in some specific way, that just please create relevant method and Assign delegate created from it to this property.
      HtmlSaveOptions.HtmlPageMarkupSavingStrategy getCustomHtmlSavingStrategy()
      Result of conversion can contain one or several HTML-pages You can assign to this property delegate created from custom method that implements processing of one HTML-page(to be accurately - markup-HTML, without external linked files if any) that was created during conversion.
      UnifiedSaveOptions.ConversionProgressEventHandler getCustomProgressHandler()
      This handler can be used to handle conversion progress events f.e. it can be used to show progress bar or messages about current amount of processed pages, example of handler's code that shows progress on console is : public static void ConvertWithShowingProgress() { (new com.aspose.pdf.License()).setLicense("Aspose.Total.lic"); Document doc = new Document("Booklet.pdf"); HtmlSaveOptions saveOptions = new HtmlSaveOptions(); saveOptions.CustomProgressHandler = new com.aspose.pdf.UnifiedSaveOptions.ConversionProgressEventHandler() { public void invoke( UnifiedSaveOptions.ProgressEventHandlerInfo eventInfo) { showProgressOnConsole(eventInfo); } }; doc.save("Booklet.doc", saveOptions); } public static void showProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo) { switch (eventInfo.EventType) { case HtmlSaveOptions.ProgressEventType.TotalProgress: System.out.println(String.format("%s - Conversion progress : %d %
      HtmlSaveOptions.ResourceSavingStrategy getCustomResourceSavingStrategy()
      This field can contain saving strategy that must be used (if present) during conversion for customized handling of created referenced resource files (like images and fonts) related to nodes of saved HTML.
      HtmlSaveOptions.CssUrlMakingStrategy getCustomStrategyOfCssUrlCreation()
      This field can contain custom method that returns URL (Or URL template if multipage generation is on - see details below) of subject CSS as it should be put in generated result HTML.
      String getDefaultFontName()
      Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system.
      int getDocumentType()
      Gets the HtmlDocumentTypeInternal.
      String[] getExcludeFontNameList()
      List of PDF embedded font names that not be embedded in HTML.
      int[] getExplicitListOfSavedPages()
      With this property You can explicitely define what pages of document should be converted.
      boolean getFixedLayout()
      Gets a value indicating whether that HTML is created as fixed layout.
      byte getFontEncodingStrategy()
      Defines encoding special rule to tune PDF decoding for current document
      int getFontSavingMode()
      Defines font saving mode that will be used during saving of PDF to desirable format
      FontSourceCollection getFontSources()
      Font sources of pre-saved fonts.
      int getHtmlMarkupGenerationMode()
      Sometimes specific reqirments to generation of HTML markup are present.
      int getImageResolution()
      Gets or sets resolution for image rendering.
      int getLettersPositioningMethod()
      Sets mode of positioning of letters in words in result HTML
      float getMinimalLineWidth()
      This attribute sets minimal width of graphic path line.
      SaveOptions.BorderInfo getPageBorderIfAny()
      This attribute represents set of settings used for drawing border (if any) in result HTML document around area that represent source PDF page.
      SaveOptions.MarginInfo getPageMarginIfAny()
      This attribute represents set of extra page margin (if any) in result HTML document around area that represent source PDF page.
      int getPartsEmbeddingMode()
      It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities
      boolean getPreventGlyphsGrouping()
      This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other.
      int getRasterImagesSavingMode()
      Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML
      boolean getSimpleTextboxModeGrouping()
      This attribute specifies a sequential grouping of glyphs and words into strings For example tags and words has different order in converted HTML and you want them to match.
      String getSpecialFolderForAllImages()
      Gets or sets path to directory to which must be saved any images if they are encountered during saving of document as HTML.
      String getSpecialFolderForSvgImages()
      Gets or sets path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML.
      boolean getSplitCssIntoPages()
      When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page.
      boolean getSplitIntoPages()
      Gets the flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages.
      boolean getUseZOrder()
      If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document.
      boolean isPagesFlowTypeDependsOnViewersScreenSize()
      If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file.
      boolean isRemoveEmptyAreasOnTopAndBottom()
      Defines whether in created HTML will be removed top and bottom empty area without any content (if any).
      boolean isRenderTextAsImage()
      If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML.
      boolean isSaveFullFont()
      Indicates that full font will be saved, supports only True Type Fonts.
      boolean isSaveShadowedTextsAsTransparentTexts()
      Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it).
      boolean isSaveTransparentTexts()
      Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it).
      boolean isTrySaveTextUnderliningAndStrikeoutingInCss()
      PDF itself does not contain underlining markers for texts.
      void setAdditionalMarginWidthInPoints(int value)
      Deprecated. 
      AdditionalMarginWidthInPoints is deprecated, please use PageMarginIfAny instead.
      void setAntialiasingProcessing(int antialiasingProcessing)
      This parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML
      void setBatchSize(int value)
      Defines batch size if batched conversion is applicable to source and destination formats pair.
      void setCompressSvgGraphicsIfAny(boolean value)
      Sets the flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving Value: The HtmlDocumentType.
      void setConvertMarkedContentToLayers(boolean value)
      If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with "data-pdflayer" attribute specifying a layer name.
      void setCssClassNamesPrefix(String cssClassNamesPrefix)
      When PDFtoHTML converter generates result CSSs, CSS class names (something like ".stl_01 {}" ... ".stl_NN {}) are generated and used in result CSS.
      void setCustomCssSavingStrategy(HtmlSaveOptions.CssSavingStrategy customCssSavingStrategy)
      This field can contain saving strategy that must be used (if present) during conversion of Pdf to Html for handling of saving of CSSes related to created HTML document as whole or to it's pages(if several HTMLpages are generated) If You want handle CSS file in some specific way, that just please create relevant method and Assign delegate created from it to this property.
      void setCustomHtmlSavingStrategy(HtmlSaveOptions.HtmlPageMarkupSavingStrategy customHtmlSavingStrategy)
      Result of conversion can contain one or several HTML-pages You can assign to this property delegate created from custom method that implements processing of one HTML-page(to be accurately - markup-HTML, without external linked files if any) that was created during conversion.
      void setCustomProgressHandler(UnifiedSaveOptions.ConversionProgressEventHandler customProgressHandler)
      This handler can be used to handle conversion progress events f.e. it can be used to show progress bar or messages about current amount of processed pages, example of handler's code that shows progress on console is : public static void ConvertWithShowingProgress() { (new com.aspose.pdf.License()).setLicense("Aspose.Total.lic"); Document doc = new Document("Booklet.pdf"); HtmlSaveOptions saveOptions = new HtmlSaveOptions(); saveOptions.CustomProgressHandler = new com.aspose.pdf.UnifiedSaveOptions.ConversionProgressEventHandler() { public void invoke( UnifiedSaveOptions.ProgressEventHandlerInfo eventInfo) { showProgressOnConsole(eventInfo); } }; doc.save("Booklet.doc", saveOptions); } public static void showProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo) { switch (eventInfo.EventType) { case HtmlSaveOptions.ProgressEventType.TotalProgress: System.out.println(String.format("%s - Conversion progress : %d %
      void setCustomResourceSavingStrategy(HtmlSaveOptions.ResourceSavingStrategy customResourceSavingStrategy)
      This field can contain saving strategy that must be used (if present) during conversion for customized handling of created referenced resource files (like images and fonts) related to nodes of saved HTML.
      void setCustomStrategyOfCssUrlCreation(HtmlSaveOptions.CssUrlMakingStrategy customStrategyOfCssUrlCreation)
      This field can contain custom method that returns URL (Or URL template if multipage generation is on - see details below) of subject CSS as it should be put in generated result HTML.
      void setDefaultFontName(String value)
      Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system.
      void setDocumentType(int value)
      Sets the HtmlDocumentType.
      void setExcludeFontNameList(String[] excludeFontNameList)
      List of PDF embedded font names that not be embedded in HTML.
      void setExplicitListOfSavedPages(int[] value)
      With this property You can explicitely define what pages of document should be converted.
      void setFixedLayout(boolean value)
      Sets a value indicating whether that HTML is created as fixed layout.
      void setFontEncodingStrategy(byte fontEncodingStrategy)
      Defines encoding special rule to tune PDF decoding for current document
      void setFontSavingMode(int fontSavingMode)
      Defines font saving mode that will be used during saving of PDF to desirable format
      void setHtmlMarkupGenerationMode(int htmlMarkupGenerationMode)
      Sometimes specific reqirments to generation of HTML markup are present.
      void setImageResolution(int value)
      Gets or sets resolution for image rendering.
      void setLettersPositioningMethod(int lettersPositioningMethod)
      Sets mode of positioning of letters in words in result HTML
      void setMinimalLineWidth(float value)
      This attribute sets minimal width of graphic path line.
      void setPageBorderIfAny(SaveOptions.BorderInfo pageBorderIfAny)
      This attribute represents set of settings used for drawing border (if any) in result HTML document around area that represent source PDF page.
      void setPageMarginIfAny(SaveOptions.MarginInfo pageMarginIfAny)
      This attribute represents set of extra page margin (if any) in result HTML document around area that represent source PDF page.
      void setPagesFlowTypeDependsOnViewersScreenSize(boolean pagesFlowTypeDependsOnViewersScreenSize)
      If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file.
      void setPartsEmbeddingMode(int partsEmbeddingMode)
      It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities
      void setPreventGlyphsGrouping(boolean value)
      This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other.
      void setRasterImagesSavingMode(int rasterImagesSavingMode)
      Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML
      void setRemoveEmptyAreasOnTopAndBottom(boolean removeEmptyAreasOnTopAndBottom)
      Defines whether in created HTML will be removed top and bottom empty area without any content (if any).
      void setRenderTextAsImage(boolean value)
      If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML.
      void setSaveFullFont(boolean saveFullFont)
      Indicates that full font will be saved, supports only True Type Fonts.
      void setSaveShadowedTextsAsTransparentTexts(boolean saveShadowedTextsAsTransparentTexts)
      Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it).
      void setSaveTransparentTexts(boolean saveTransparentTexts)
      Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it).
      void setSimpleTextboxModeGrouping(boolean value)
      This attribute specifies a sequential grouping of glyphs and words into strings For example tags and words has different order in converted HTML and you want them to match.
      void setSpecialFolderForAllImages(String specialFolderForAllImages)
      Gets or sets path to directory to which must be saved any images if they are encountered during saving of document as HTML.
      void setSpecialFolderForSvgImages(String specialFolderForSvgImages)
      Gets or sets path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML.
      void setSplitCssIntoPages(boolean value)
      When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page.
      void setSplitIntoPages(boolean value)
      Sets the flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages.
      void setTrySaveTextUnderliningAndStrikeoutingInCss(boolean trySaveTextUnderliningAndStrikeoutingInCss)
      PDF itself does not contain underlining markers for texts.
      void setUseZOrder(boolean value)
      If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document.
    • Constructor Detail

      • HtmlSaveOptions

        public HtmlSaveOptions()

        Initializes a new instance of the HtmlSaveOptions class.

      • HtmlSaveOptions

        public HtmlSaveOptions(int documentType)

        Initializes a new instance of the HtmlSaveOptions class.

        Parameters:
        documentType - The HtmlDocumentTypeInternal.
      • HtmlSaveOptions

        public HtmlSaveOptions(boolean fixedLayout)

        Initializes a new instance of the HtmlSaveOptions class.

        Parameters:
        fixedLayout - boolean value
      • HtmlSaveOptions

        public HtmlSaveOptions(int documentType,
                               boolean fixedLayout)

        Initializes a new instance of the HtmlSaveOptions class.

        Parameters:
        documentType - The HtmlDocumentTypeInternal.
        fixedLayout - if set to true HTML is created as fixed layout.
        See Also:
        HtmlDocumentType
    • Method Detail

      • getCustomProgressHandler

        public UnifiedSaveOptions.ConversionProgressEventHandler getCustomProgressHandler()

        This handler can be used to handle conversion progress events f.e. it can be used to show progress bar or messages about current amount of processed pages, example of handler's code that shows progress on console is :


        
        
             public static void ConvertWithShowingProgress()
             {
                 (new com.aspose.pdf.License()).setLicense("Aspose.Total.lic");
                 Document doc = new Document("Booklet.pdf");
                 HtmlSaveOptions saveOptions = new HtmlSaveOptions();
                 saveOptions.CustomProgressHandler = new com.aspose.pdf.UnifiedSaveOptions.ConversionProgressEventHandler() {
                public void invoke(
                    UnifiedSaveOptions.ProgressEventHandlerInfo eventInfo) {
                showProgressOnConsole(eventInfo);
                }
            };
                 doc.save("Booklet.doc", saveOptions);
             }
             public static void showProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo)
             {
                 switch (eventInfo.EventType)
                 {
                     case HtmlSaveOptions.ProgressEventType.TotalProgress:
                         System.out.println(String.format("%s  - Conversion progress : %d % .", (new Date()).toString(), eventInfo.Value));
                         break;
                     case HtmlSaveOptions.ProgressEventType.SourcePageAnalized:
                         System.out.println(String.format("%s  - Source page %d of %d analyzed.", (new Date()).toString(), eventInfo.Value, eventInfo.MaxValue));
                         break;
                     case HtmlSaveOptions.ProgressEventType.ResultPageCreated:
                         System.out.println(String.format("%s  - Result page's %d of %d layout created.", (new Date()).toString(), eventInfo.Value, eventInfo.MaxValue));
                         break;
                     case HtmlSaveOptions.ProgressEventType.ResultPageSaved:
                         System.out.println(String.format("%s  - Result page %d of %d exported.", (new Date()).toString(), eventInfo.Value, eventInfo.MaxValue));
                         break;
                     default:
                         break;
                 }
              }
          
        Returns:
        ConversionProgressEventHandler instance
      • setCustomProgressHandler

        public void setCustomProgressHandler(UnifiedSaveOptions.ConversionProgressEventHandler customProgressHandler)

        This handler can be used to handle conversion progress events f.e. it can be used to show progress bar or messages about current amount of processed pages, example of handler's code that shows progress on console is :


        
        
             public static void ConvertWithShowingProgress()
             {
             (new com.aspose.pdf.License()).setLicense("Aspose.Total.lic");
             Document doc = new Document("Booklet.pdf");
             HtmlSaveOptions saveOptions = new HtmlSaveOptions();
             saveOptions.CustomProgressHandler = new com.aspose.pdf.UnifiedSaveOptions.ConversionProgressEventHandler() {
             public void invoke(
             UnifiedSaveOptions.ProgressEventHandlerInfo eventInfo) {
             showProgressOnConsole(eventInfo);
             }
             };
             doc.save("Booklet.doc", saveOptions);
             }
             public static void showProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo)
             {
             switch (eventInfo.EventType)
             {
             case HtmlSaveOptions.ProgressEventType.TotalProgress:
             System.out.println(String.format("%s  - Conversion progress : %d % .", (new Date()).toString(), eventInfo.Value));
             break;
             case HtmlSaveOptions.ProgressEventType.SourcePageAnalized:
             System.out.println(String.format("%s  - Source page %d of %d analyzed.", (new Date()).toString(), eventInfo.Value, eventInfo.MaxValue));
             break;
             case HtmlSaveOptions.ProgressEventType.ResultPageCreated:
             System.out.println(String.format("%s  - Result page's %d of %d layout created.", (new Date()).toString(), eventInfo.Value, eventInfo.MaxValue));
             break;
             case HtmlSaveOptions.ProgressEventType.ResultPageSaved:
             System.out.println(String.format("%s  - Result page %d of %d exported.", (new Date()).toString(), eventInfo.Value, eventInfo.MaxValue));
             break;
             default:
             break;
             }
             }
          
        Parameters:
        customProgressHandler - ConversionProgressEventHandler instance
      • isSaveFullFont

        public boolean isSaveFullFont()

        Indicates that full font will be saved, supports only True Type Fonts. By default SaveFullFont = false and the converter saves the subset of the initial font needed to display the text of the document.

        Returns:
        boolean value
      • setSaveFullFont

        public void setSaveFullFont(boolean saveFullFont)

        Indicates that full font will be saved, supports only True Type Fonts. By default SaveFullFont = false and the converter saves the subset of the initial font needed to display the text of the document.

        Parameters:
        saveFullFont - boolean value
      • getAntialiasingProcessing

        public int getAntialiasingProcessing()

        This parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML

        Returns:
        AntialiasingProcessingType element
        See Also:
        HtmlSaveOptions.AntialiasingProcessingType
      • setAntialiasingProcessing

        public void setAntialiasingProcessing(int antialiasingProcessing)

        This parameter defines required antialiasing measures during conversion of compound background images from PDF to HTML

        Parameters:
        antialiasingProcessing - AntialiasingProcessingType element
        See Also:
        HtmlSaveOptions.AntialiasingProcessingType
      • isSaveTransparentTexts

        public boolean isSaveTransparentTexts()

        Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML

        Returns:
        boolean value
      • setSaveTransparentTexts

        public void setSaveTransparentTexts(boolean saveTransparentTexts)

        Pdf can contain transparent texts that can be selected to clipboard (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML

        Parameters:
        saveTransparentTexts - boolean value
      • isSaveShadowedTextsAsTransparentTexts

        public boolean isSaveShadowedTextsAsTransparentTexts()

        Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard)

        Returns:
        boolean value
      • setSaveShadowedTextsAsTransparentTexts

        public void setSaveShadowedTextsAsTransparentTexts(boolean saveShadowedTextsAsTransparentTexts)

        Pdf can contain texts that are shadowed by another elements (f.e. by images) but can be selected to clipboard in Acrobat Reader (usually it happen when document contains images and OCRed texts extracted from it). This settings tells to converter whether we need save such texts as transparent selectable texts in result HTML to mimic behaviour of Acrobat Reader (othervise such texts are usually saved as hidden, not available for copying to clipboard)

        Parameters:
        saveShadowedTextsAsTransparentTexts - boolean value
      • getFontSavingMode

        public int getFontSavingMode()

        Defines font saving mode that will be used during saving of PDF to desirable format

        Returns:
        FontSavingModes element
        See Also:
        HtmlSaveOptions.FontSavingModes
      • setFontSavingMode

        public void setFontSavingMode(int fontSavingMode)

        Defines font saving mode that will be used during saving of PDF to desirable format

        Parameters:
        fontSavingMode - FontSavingModes element
        See Also:
        HtmlSaveOptions.FontSavingModes
      • getPageBorderIfAny

        public SaveOptions.BorderInfo getPageBorderIfAny()

        This attribute represents set of settings used for drawing border (if any) in result HTML document around area that represent source PDF page. In essence it concerns of showing of page's paper edges, not page border referenced in PDF page itself.

        Returns:
        BorderInfo instance
      • setPageBorderIfAny

        public void setPageBorderIfAny(SaveOptions.BorderInfo pageBorderIfAny)

        This attribute represents set of settings used for drawing border (if any) in result HTML document around area that represent source PDF page. In essence it concerns of showing of page's paper edges, not page border referenced in PDF page itself.

        Parameters:
        pageBorderIfAny - BorderInfo instance
      • getPageMarginIfAny

        public SaveOptions.MarginInfo getPageMarginIfAny()

        This attribute represents set of extra page margin (if any) in result HTML document around area that represent source PDF page.

        Returns:
        MarginInfo instance
      • setPageMarginIfAny

        public void setPageMarginIfAny(SaveOptions.MarginInfo pageMarginIfAny)

        This attribute represents set of extra page margin (if any) in result HTML document around area that represent source PDF page.

        Parameters:
        pageMarginIfAny - MarginInfo instance
      • getLettersPositioningMethod

        public int getLettersPositioningMethod()

        Sets mode of positioning of letters in words in result HTML

        Returns:
        LettersPositioningMethods element
        See Also:
        LettersPositioningMethods
      • setLettersPositioningMethod

        public void setLettersPositioningMethod(int lettersPositioningMethod)

        Sets mode of positioning of letters in words in result HTML

        Parameters:
        lettersPositioningMethod - LettersPositioningMethods element
        See Also:
        LettersPositioningMethods
      • getExcludeFontNameList

        public String[] getExcludeFontNameList()

        List of PDF embedded font names that not be embedded in HTML.

        Returns:
        array of String elements
      • setExcludeFontNameList

        public void setExcludeFontNameList(String[] excludeFontNameList)

        List of PDF embedded font names that not be embedded in HTML.

        Parameters:
        excludeFontNameList - array of String elements
      • getCustomResourceSavingStrategy

        public HtmlSaveOptions.ResourceSavingStrategy getCustomResourceSavingStrategy()

        This field can contain saving strategy that must be used (if present) during conversion for customized handling of created referenced resource files (like images and fonts) related to nodes of saved HTML. That strategy must process resources and return string that represents desirable URL of saved resource in generated HTML.

        Returns:
        ResourceSavingStrategy instance
      • setCustomResourceSavingStrategy

        public void setCustomResourceSavingStrategy(HtmlSaveOptions.ResourceSavingStrategy customResourceSavingStrategy)

        This field can contain saving strategy that must be used (if present) during conversion for customized handling of created referenced resource files (like images and fonts) related to nodes of saved HTML. That strategy must process resources and return string that represents desirable URL of saved resource in generated HTML.

        Parameters:
        customResourceSavingStrategy - ResourceSavingStrategy instance
      • getCustomCssSavingStrategy

        public HtmlSaveOptions.CssSavingStrategy getCustomCssSavingStrategy()

        This field can contain saving strategy that must be used (if present) during conversion of Pdf to Html for handling of saving of CSSes related to created HTML document as whole or to it's pages(if several HTMLpages are generated) If You want handle CSS file in some specific way, that just please create relevant method and Assign delegate created from it to this property.

        Returns:
        CssSavingStrategy instance
      • setCustomCssSavingStrategy

        public void setCustomCssSavingStrategy(HtmlSaveOptions.CssSavingStrategy customCssSavingStrategy)

        This field can contain saving strategy that must be used (if present) during conversion of Pdf to Html for handling of saving of CSSes related to created HTML document as whole or to it's pages(if several HTMLpages are generated) If You want handle CSS file in some specific way, that just please create relevant method and Assign delegate created from it to this property.

        Parameters:
        customCssSavingStrategy - CssSavingStrategy instance
      • getCustomHtmlSavingStrategy

        public HtmlSaveOptions.HtmlPageMarkupSavingStrategy getCustomHtmlSavingStrategy()

        Result of conversion can contain one or several HTML-pages You can assign to this property delegate created from custom method that implements processing of one HTML-page(to be accurately - markup-HTML, without external linked files if any) that was created during conversion. In such case processing (like saving of paage's HTML in stream or disk) can be done in that custom code . In such case all the necessary actions for saving of HTML page must be undertaken in code of supplied method, because saving of result in code of converter will be not in use . If processing for this or that case for some reason must be done by converter's code itself, not in custom code, please set in custom code flag 'CustomProcessingCancelled' of 'htmlSavingInfo' parameter's variable : it will signal to converter that all the necessary steps for processing of that resource must be done in converter itself in same way as if there was no any external custom code for procesing .

        Returns:
        HtmlPageMarkupSavingStrategy instance
      • setCustomHtmlSavingStrategy

        public void setCustomHtmlSavingStrategy(HtmlSaveOptions.HtmlPageMarkupSavingStrategy customHtmlSavingStrategy)

        Result of conversion can contain one or several HTML-pages You can assign to this property delegate created from custom method that implements processing of one HTML-page(to be accurately - markup-HTML, without external linked files if any) that was created during conversion. In such case processing (like saving of paage's HTML in stream or disk) can be done in that custom code . In such case all the necessary actions for saving of HTML page must be undertaken in code of supplied method, because saving of result in code of converter will be not in use . If processing for this or that case for some reason must be done by converter's code itself, not in custom code, please set in custom code flag 'CustomProcessingCancelled' of 'htmlSavingInfo' parameter's variable : it will signal to converter that all the necessary steps for processing of that resource must be done in converter itself in same way as if there was no any external custom code for procesing .

        Parameters:
        customHtmlSavingStrategy - HtmlPageMarkupSavingStrategy instance
      • getCustomStrategyOfCssUrlCreation

        public HtmlSaveOptions.CssUrlMakingStrategy getCustomStrategyOfCssUrlCreation()

        This field can contain custom method that returns URL (Or URL template if multipage generation is on - see details below) of subject CSS as it should be put in generated result HTML. F.e. if You want converter put some specific URL instead of standard CSS file name into generated CSS, then You should just create and put into this property method that generates desirable URL. If flag 'SplitCssIntoPages' set, then this custom strategy (if any) must return not exact URL of CSS but rather template string that (after substitution of placeholder with page number with String.Format() function inside converter) can be resolved into URL for this or that page's CSS' URL. Examples of expected return string in such case are: 'SomeTargetLocation-page_{0}.css','../PartHandlers/GetCss.aspx?DocumentId=45654&CssPage={0 } ' )

        Returns:
        CssUrlMakingStrategy instance
      • setCustomStrategyOfCssUrlCreation

        public void setCustomStrategyOfCssUrlCreation(HtmlSaveOptions.CssUrlMakingStrategy customStrategyOfCssUrlCreation)

        This field can contain custom method that returns URL (Or URL template if multipage generation is on - see details below) of subject CSS as it should be put in generated result HTML. F.e. if You want converter put some specific URL instead of standard CSS file name into generated CSS, then You should just create and put into this property method that generates desirable URL. If flag 'SplitCssIntoPages' set, then this custom strategy (if any) must return not exact URL of CSS but rather template string that (after substitution of placeholder with page number with String.Format() function inside converter) can be resolved into URL for this or that page's CSS' URL. Examples of expected return string in such case are: 'SomeTargetLocation-page_{0}.css','../PartHandlers/GetCss.aspx?DocumentId=45654&CssPage={0 } ' )

        Parameters:
        customStrategyOfCssUrlCreation - CssUrlMakingStrategy instance
      • getSpecialFolderForSvgImages

        public String getSpecialFolderForSvgImages()

        Gets or sets path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.

        Returns:
        String value
      • setSpecialFolderForSvgImages

        public void setSpecialFolderForSvgImages(String specialFolderForSvgImages)

        Gets or sets path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.

        Parameters:
        specialFolderForSvgImages - String value
      • getSpecialFolderForAllImages

        public String getSpecialFolderForAllImages()

        Gets or sets path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.

        Returns:
        String value
      • setSpecialFolderForAllImages

        public void setSpecialFolderForAllImages(String specialFolderForAllImages)

        Gets or sets path to directory to which must be saved any images if they are encountered during saving of document as HTML. If parameter is empty or null then image files(if any) wil be saved together with other files linked to HTML It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.

        Parameters:
        specialFolderForAllImages - String value
      • getCssClassNamesPrefix

        public String getCssClassNamesPrefix()

        When PDFtoHTML converter generates result CSSs, CSS class names (something like ".stl_01 {}" ... ".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix For example, if You want that all class names start with 'my_prefix_' (i.e. were something like 'my_prefix_1' ... 'my_prefix_NNN' ) , then just assign 'my_prefix_' to this property before conversion. If this property will stay untouched(i.e. null will be leaved as value ), then converter will generate class names itself (it will be something like ".stl_01 {}" ... ".stl_NN {}")

        Returns:
        String value
      • setCssClassNamesPrefix

        public void setCssClassNamesPrefix(String cssClassNamesPrefix)

        When PDFtoHTML converter generates result CSSs, CSS class names (something like ".stl_01 {}" ... ".stl_NN {}) are generated and used in result CSS. This property allows forcibly set class name prefix For example, if You want that all class names start with 'my_prefix_' (i.e. were something like 'my_prefix_1' ... 'my_prefix_NNN' ) , then just assign 'my_prefix_' to this property before conversion. If this property will stay untouched(i.e. null will be leaved as value ), then converter will generate class names itself (it will be something like ".stl_01 {}" ... ".stl_NN {}")

        Parameters:
        cssClassNamesPrefix - String value
      • getPartsEmbeddingMode

        public int getPartsEmbeddingMode()

        It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities

        Returns:
        PartsEmbeddingModes element
        See Also:
        HtmlSaveOptions.PartsEmbeddingModes
      • setPartsEmbeddingMode

        public void setPartsEmbeddingMode(int partsEmbeddingMode)

        It defines whether referenced files (HTML, Fonts,Images, CSSes) will be embedded into main HTML file or will be generated as apart binary entities

        Parameters:
        partsEmbeddingMode - PartsEmbeddingModes element
        See Also:
        HtmlSaveOptions.PartsEmbeddingModes
      • getHtmlMarkupGenerationMode

        public int getHtmlMarkupGenerationMode()

        Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments.

        Returns:
        HtmlMarkupGenerationModes element
        See Also:
        HtmlSaveOptions.HtmlMarkupGenerationModes
      • setHtmlMarkupGenerationMode

        public void setHtmlMarkupGenerationMode(int htmlMarkupGenerationMode)

        Sometimes specific reqirments to generation of HTML markup are present. This parameter defines HTML preparing modes that can be used during conversion of PDF to HTML to match such specific requirments.

        Parameters:
        htmlMarkupGenerationMode - HtmlMarkupGenerationModes element
        See Also:
        HtmlSaveOptions.HtmlMarkupGenerationModes
      • getRasterImagesSavingMode

        public int getRasterImagesSavingMode()

        Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML

        Returns:
        RasterImagesSavingModes element
        See Also:
        HtmlSaveOptions.RasterImagesSavingModes
      • setRasterImagesSavingMode

        public void setRasterImagesSavingMode(int rasterImagesSavingMode)

        Converted PDF can contain raster images This parameter defines how they should be handled during conversion of PDF to HTML

        Parameters:
        rasterImagesSavingMode - RasterImagesSavingModes element
        See Also:
        HtmlSaveOptions.RasterImagesSavingModes
      • isRemoveEmptyAreasOnTopAndBottom

        public boolean isRemoveEmptyAreasOnTopAndBottom()

        Defines whether in created HTML will be removed top and bottom empty area without any content (if any).

        Returns:
        boolean value
      • setRemoveEmptyAreasOnTopAndBottom

        public void setRemoveEmptyAreasOnTopAndBottom(boolean removeEmptyAreasOnTopAndBottom)

        Defines whether in created HTML will be removed top and bottom empty area without any content (if any).

        Parameters:
        removeEmptyAreasOnTopAndBottom - boolean value
      • getFontEncodingStrategy

        public byte getFontEncodingStrategy()

        Defines encoding special rule to tune PDF decoding for current document

        Returns:
        FontEncodingRules element
        See Also:
        HtmlSaveOptions.FontEncodingRules
      • setFontEncodingStrategy

        public void setFontEncodingStrategy(byte fontEncodingStrategy)

        Defines encoding special rule to tune PDF decoding for current document

        Parameters:
        fontEncodingStrategy - FontEncodingRules element
        See Also:
        HtmlSaveOptions.FontEncodingRules
      • isPagesFlowTypeDependsOnViewersScreenSize

        public boolean isPagesFlowTypeDependsOnViewersScreenSize()

        If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. Suppose width of screen on viewer side is big enough to put 2 or more pages one near other in horizontal direction. If this flag set to true, then this opportunity will be used (as many pages will be shown in horizontal direction one near another as it possible, then next horizontal group of pages will be shown under first one ). Otherwise pages will flow in such way: next page goes always under previous one.

        Returns:
        boolean value
      • setPagesFlowTypeDependsOnViewersScreenSize

        public void setPagesFlowTypeDependsOnViewersScreenSize(boolean pagesFlowTypeDependsOnViewersScreenSize)

        If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages will be put into one big result HTML file. This flag defines whether result HTML will be generated in such way that flow of areas that represent PDF pages in result HTML will depend on screen resolution of viewer. Suppose width of screen on viewer side is big enough to put 2 or more pages one near other in horizontal direction. If this flag set to true, then this opportunity will be used (as many pages will be shown in horizontal direction one near another as it possible, then next horizontal group of pages will be shown under first one ). Otherwise pages will flow in such way: next page goes always under previous one.

        Parameters:
        pagesFlowTypeDependsOnViewersScreenSize - boolean value
      • isTrySaveTextUnderliningAndStrikeoutingInCss

        public boolean isTrySaveTextUnderliningAndStrikeoutingInCss()

        PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically

        Returns:
        boolean value
      • setTrySaveTextUnderliningAndStrikeoutingInCss

        public void setTrySaveTextUnderliningAndStrikeoutingInCss(boolean trySaveTextUnderliningAndStrikeoutingInCss)

        PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically

        Parameters:
        trySaveTextUnderliningAndStrikeoutingInCss - boolean value
      • getDocumentType

        public int getDocumentType()

        Gets the HtmlDocumentTypeInternal.

        Returns:
        The HtmlDocumentTypeInternal.
      • setDocumentType

        public void setDocumentType(int value)
        Sets the HtmlDocumentType.
        Parameters:
        value - The HtmlDocumentType.
        See Also:
        HtmlDocumentType
      • getCompressSvgGraphicsIfAny

        public boolean getCompressSvgGraphicsIfAny()

        Gets the flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving

        Value: The HtmlDocumentType.
        Returns:
        boolean value
      • setCompressSvgGraphicsIfAny

        public void setCompressSvgGraphicsIfAny(boolean value)

        Sets the flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving

        Value: The HtmlDocumentType.
        Parameters:
        value - boolean value
      • getSplitCssIntoPages

        public boolean getSplitCssIntoPages()

        When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. By default this attribute is false, so, will be created one big common CSS for all created pages. Summary size of all CSSes generated in this mode(one CSS per page) usually much more than size of one big CSS file, because in former case CSS classes are duplicates in such case in several CSS files for each page. So, this setting is worse to be used only when You are interested in future processing of each HTML page independently, and therefore size of CSS of each one page taken apart is the most critical issue.

        Returns:
        boolean value
      • setSplitCssIntoPages

        public void setSplitCssIntoPages(boolean value)

        When multipage-mode selected(i.e 'SplitIntoPages' is 'true'), then this attribute defines whether should be created separate CSS-file for each result HTML page. By default this attribute is false, so, will be created one big common CSS for all created pages. Summary size of all CSSes generated in this mode(one CSS per page) usually much more than size of one big CSS file, because in former case CSS classes are duplicates in such case in several CSS files for each page. So, this setting is worse to be used only when You are interested in future processing of each HTML page independently, and therefore size of CSS of each one page taken apart is the most critical issue.

        Parameters:
        value - boolean value
      • getSplitIntoPages

        public boolean getSplitIntoPages()

        Gets the flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages.

        Returns:
        boolean value
      • setSplitIntoPages

        public void setSplitIntoPages(boolean value)

        Sets the flag that indicates whether each page of source document will be converted into it's own target HTML document, i.e whether result HTML will be splitted into several HTML-pages.

        Parameters:
        value - boolean value
      • getExplicitListOfSavedPages

        public final int[] getExplicitListOfSavedPages()

        With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. If this list is null (as it is by default), all pages will be converted. If any page number of this list will go out of range of present pages(1-[amountOfPagesInDocument]) exception will be thrown.

        Specified by:
        getExplicitListOfSavedPages in interface IPageSetOptions
        Returns:
        int array
      • setExplicitListOfSavedPages

        public final void setExplicitListOfSavedPages(int[] value)

        With this property You can explicitely define what pages of document should be converted. Pages in this list must have 1-based numbers. I.e. valid numbers of pages must be taken from range (1...[NumberOfPagesInConvertedDocument]) Order of appearing of pages in this list does not affect their order in result HTML page(s) - in result pages allways will go in order in which they are present in source PDF. If this list is null (as it is by default), all pages will be converted. If any page number of this list will go out of range of present pages(1-[amountOfPagesInDocument]) exception will be thrown.

        Specified by:
        setExplicitListOfSavedPages in interface IPageSetOptions
        Parameters:
        value - int array
      • getFixedLayout

        public boolean getFixedLayout()

        Gets a value indicating whether that HTML is created as fixed layout.

        Returns:
        value: true if [fixed layout]; otherwise, false.
      • setFixedLayout

        public void setFixedLayout(boolean value)

        Sets a value indicating whether that HTML is created as fixed layout.

        Parameters:
        value - : true if [fixed layout]; otherwise, false.
      • getImageResolution

        public int getImageResolution()

        Gets or sets resolution for image rendering.

        Returns:
        Value: Resolution
      • setImageResolution

        public void setImageResolution(int value)

        Gets or sets resolution for image rendering.

        Parameters:
        value - Value: Resolution
      • getDefaultFontName

        public String getDefaultFontName()

        Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.

        Returns:
        String value: Font name
      • setDefaultFontName

        public void setDefaultFontName(String value)

        Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.

        Parameters:
        value - Font name
      • getBatchSize

        public final int getBatchSize()

        Defines batch size if batched conversion is applicable to source and destination formats pair.

        Specified by:
        getBatchSize in interface IPipelineOptions
        Returns:
        int value
      • setBatchSize

        public final void setBatchSize(int value)

        Defines batch size if batched conversion is applicable to source and destination formats pair.

        Specified by:
        setBatchSize in interface IPipelineOptions
        Parameters:
        value - int value
      • getFontSources

        public FontSourceCollection getFontSources()

        Font sources of pre-saved fonts.

        Returns:
        FontSourceCollection object

        Fonts may be saved preliminarily for cache purpose and then passed into Html conversion process. For example it may be useful in document splitting scenario and processing document pages in multiple threads with single set of fonts.

      • getAdditionalMarginWidthInPoints

        @Deprecated
        public int getAdditionalMarginWidthInPoints()
        Deprecated. AdditionalMarginWidthInPoints is deprecated, please use PageMarginIfAny instead.

        If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages wont be not split into different HTML pages, but will be put into one big result HTML file. But each source PDF page will be represented with it's own rectangle area in HTML (if necessary that areas can be bordered to show page paper edges with special attribute 'PageBorderIfAny'. This parameter defines width of margin that will be forcibly left around that output HTML-areas that represent pages of source PDF document.In essence it defines guaranteed interval between HTML-representations of PDF "paper" pages such mode of conversion.

        Returns:
        int value
      • setAdditionalMarginWidthInPoints

        @Deprecated
        public void setAdditionalMarginWidthInPoints(int value)
        Deprecated. AdditionalMarginWidthInPoints is deprecated, please use PageMarginIfAny instead.

        If attribute 'SplitOnPages=false', than whole HTML representing all input PDF pages wont be not split into different HTML pages, but will be put into one big result HTML file. But each source PDF page will be represented with it's own rectangle area in HTML (if necessary that areas can be bordered to show page paper edges with special attribute 'PageBorderIfAny'. This parameter defines width of margin that will be forcibly left around that output HTML-areas that represent pages of source PDF document.In essence it defines guaranteed interval between HTML-representations of PDF "paper" pages such mode of conversion.

        Parameters:
        value - int value
      • getUseZOrder

        public boolean getUseZOrder()

        If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects.

        Returns:
        boolean value
      • setUseZOrder

        public void setUseZOrder(boolean value)

        If attribute UseZORder set to true, graphics and text are added to resultant HTML document accordingly Z-order in original PDF document. If this attribute is false all graphics is put as single layer which may cause some unnecessary effects for overlapped objects.

        Parameters:
        value - boolean value
      • getConvertMarkedContentToLayers

        public boolean getConvertMarkedContentToLayers()

        If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with "data-pdflayer" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.

        Returns:
        boolean value
      • setConvertMarkedContentToLayers

        public void setConvertMarkedContentToLayers(boolean value)

        If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with "data-pdflayer" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.

        Parameters:
        value - boolean value
      • getMinimalLineWidth

        public float getMinimalLineWidth()

        This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.

        Returns:
        float value
      • setMinimalLineWidth

        public void setMinimalLineWidth(float value)

        This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.

        Parameters:
        value - float value
      • getPreventGlyphsGrouping

        public boolean getPreventGlyphsGrouping()

        This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true.

        Returns:
        boolean value
      • setPreventGlyphsGrouping

        public void setPreventGlyphsGrouping(boolean value)

        This attribute switch on the mode when text glyphs will not be grouped into words and strings This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately each other. This parameter will be applied to document only when the value of FixedLayout attribute is true.

        Parameters:
        value - boolean value
      • getSimpleTextboxModeGrouping

        public final boolean getSimpleTextboxModeGrouping()

        This attribute specifies a sequential grouping of glyphs and words into strings For example tags and words has different order in converted HTML and you want them to match. This parameter will be applied to document only when the value of FixedLayout attribute is true.

        Returns:
        boolean value
      • setSimpleTextboxModeGrouping

        public final void setSimpleTextboxModeGrouping(boolean value)

        This attribute specifies a sequential grouping of glyphs and words into strings For example tags and words has different order in converted HTML and you want them to match. This parameter will be applied to document only when the value of FixedLayout attribute is true.

        Parameters:
        value - boolean value
      • setRenderTextAsImage

        public void setRenderTextAsImage(boolean value)
        If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML. May be useful to make text unselectable or HTML text is not rendered properly.
        Parameters:
        value - boolean value
      • isRenderTextAsImage

        public boolean isRenderTextAsImage()
        If attribute RenderTextAsImage set to true, the text from the source becomes an image in HTML. May be useful to make text unselectable or HTML text is not rendered properly.
        Returns:
        boolean value