officetohtml-reactive
Reactive icon

Office To Html Reactive / File viewer

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 01 July 2024
 by 
5.0
 (3 ratings)
officetohtml-reactive

Office To Html Reactive / File viewer

Documentation
1.0.1

Overview


The OfficeToHtml_Reactive component for OutSystems leverages the "OfficeToHtml" jQuery plugin to convert Office files (PPTX, DOCX, XLSX) and PDF documents to HTML using pure JavaScript. This component enables seamless integration and easy file viewing within your OutSystems applications.

Features

  • Convert Various Formats: Supports conversion of PPTX, DOCX, XLSX, and PDF files to HTML.
  • Flexible Input: Accepts a URL as an input parameter to directly view files or provides an input box for file upload when no URL is provided.
  • Easy Integration: Simply drag and drop the component into your application to get started.

Getting Started

  1. Adding the Component:

    • Drag and drop the OfficeToHtml_File web block onto your page in the OutSystems environment.
  2. Using URL as Input:

    • If you have a file URL that you want to view, pass the URL as an input parameter to the web block.
    • The component will automatically fetch and display the file content.
  3. Using File Upload:

    • If you do not pass any input parameter to the web block, an input box will be displayed.
    • Users can upload a file directly from their device to view its content.

Input Parameters

  • FileURL (Text): The URL of the file to be converted and displayed. If this parameter is provided, the component will fetch and display the file directly.
  • No Input Parameter: If no URL is provided, an input box will be shown, allowing users to upload a file from their device.



    For more customization

  • pdfSetting:
    #namedescriptiondefault value
    1setLangset manually the interface language(short name code) -click here to see all supported languages: link.
    if set to "" or not set at all then the language will be as the browser interface language or English if it is not supported.
    ""
    1thumbnailViewBtnThumbnail viewer button (true - view button, false - hide button).true
    2searchBtnSeraching button (true - view button, false - hide button).true
    3nextPreviousBtnnext and previous button (true - view button, false - hide button).true
    4pageNumberTxtpage number textbox  (true - view text, false - hide text).true
    5totalPagesLabeltotal pages label (true - view label, false - hide label).true
    6zoomBtnszoom buttons (true - view buttons, false - hide buttons).true
    7scaleSelectorscale selector (true - view selector, false - hide selector).true
    8presantationModeBtnpresentation mode button (true - view button, false - hide button).true
    9openFileBtnopen file button (true - view button, false - hide button).true
    10printBtnprint button (true - view button, false - hide button).true
    11downloadBtndownload button (true - view button, false - hide button).true
    12bookmarkBtnbookmark button - open current view in new window (true - view button, false - hide button).true
    13secondaryToolbarBtnsecondary toolbar button (true - view button, false - hide button).true
    14firstPageBtngo to first page button (true - view button, false - hide button).true
    15lastPageBtngo to last page button (true - view button, false - hide button).true
    16pageRotateCwBtnrotate page clockwise button (true - view button, false - hide button).true
    17pageRotateCcwBtnrotate page counter clockwise button (true - view button, false - hide button).true
    18cursorSelectTextToolbarBtnselect text button (true - view button, false - hide button).true
    19cursorHandToolbarBtncursor hand button (true - view button, false - hide button).true


    docxSetting:

    #namedescriptiondefault value
    1isRtl

    set if the docx document is "rtl" (right to left) or "ltr" (left to right).
    set "auto" for automatic detaction (work for hebrew only)
    "auto"
    2
    For the others options see mammoth.js github page


    pptxSetting:

    #namedescriptiondefault value
    1slidesScaleChange Slides scale by percent(%). for orginal size set this option to "" or "100%"""
    2slideModeIf true, turn on presentation mode. The settings of the presentation mode are controlled by the variables "slideModeConfig"false
    3keyBoardShortCutIf true, enable to enter or exit from presentation mode by keyboard shortcut F5false
    4mediaProcessif true, then process video and audio files.If 'false', you can not play and see or hear the videos and audios embedded in the presentation.true
    5jsZipV2url link to jsZip version 2.
    This allows the ability to load jsZip v.2 in case jsZip v.3 is loaded for another use.
    false
    6slideModeConfigsettings of the presentation mode.
    for more details click here
    {}
    7slideModeConfig.firstThe first slide that will be loaded.1
    8slideModeConfig.navshow ('true') or hide ('false') navigator buttons.true
    9slideModeConfig.navTxtColorcolor of slide number text and total slides number shown in navigator area."black"
    10slideModeConfig.keyBoardShortCutif true , enable to control presentation by keyboard shortcuts.
    for keyboard shortcuts list click here
    false
    11slideModeConfig.showSlideNumif true , show slide number in navigator area.true
    12slideModeConfig.showTotalSlideNumif true , show total slides number in navigator area.true
    13slideModeConfig.autoSlideoptions:'false' or number (seconds). if set 'false' it disable auto slide mode. if set number then auto slide mode will be enabled and the number will be the time between slides.1
    14slideModeConfig.randomAutoSlideif true and autoSlide mode are enabled then The slides appear in random order.false
    15slideModeConfig.loopif true, in presentation mode , after last slide will go to first slide. in auto slideMode, the presentation will play in loop.false
    16slideModeConfig.backgroundcolor of presentation background.false
    17slideModeConfig.transitiontransition types options: "slid","fade","default","random"."default"
    18slideModeConfig.transitionTimeTime delay in seconds between slides.1
    19slideType (v1.11.0)slide viewr option: 'divs2slidesjs', 'revealjs'(https://revealjs.com)"divs2slidesjs"
    20revealjsPath (v1.11.0)path to js file of revealjs.'./revealjs/reveal.js'
    21revealjsConfig (v1.11.0)revealjs options. see https://revealjs.com */


    sheetSetting:

    #namedescriptiondefault value
    1jqueryuiif true , will use jQuery-ui interface.
    To use this option, must include "jquery-ui.js" and "jquery-ui.css" in the HEAD area.
    false
    2
    For the others options see handsontable tutorial


    imageSetting:

    #namedescriptiondefault value
    1
    For options see verySimpleImageViewer github page

1.0.0

Overview


The OfficeToHtml_Reactive component for OutSystems leverages the "OfficeToHtml" jQuery plugin to convert Office files (PPTX, DOCX, XLSX) and PDF documents to HTML using pure JavaScript. This component enables seamless integration and easy file viewing within your OutSystems applications.

Features

  • Convert Various Formats: Supports conversion of PPTX, DOCX, XLSX, and PDF files to HTML.
  • Flexible Input: Accepts a URL as an input parameter to directly view files or provides an input box for file upload when no URL is provided.
  • Easy Integration: Simply drag and drop the component into your application to get started.

Getting Started

  1. Adding the Component:

    • Drag and drop the OfficeToHtml_File web block onto your page in the OutSystems environment.
  2. Using URL as Input:

    • If you have a file URL that you want to view, pass the URL as an input parameter to the web block.
    • The component will automatically fetch and display the file content.
  3. Using File Upload:

    • If you do not pass any input parameter to the web block, an input box will be displayed.
    • Users can upload a file directly from their device to view its content.

Input Parameters

  • FileURL (Text): The URL of the file to be converted and displayed. If this parameter is provided, the component will fetch and display the file directly.
  • No Input Parameter: If no URL is provided, an input box will be shown, allowing users to upload a file from their device.



    For more customization

  • pdfSetting:
    #namedescriptiondefault value
    1setLangset manually the interface language(short name code) -click here to see all supported languages: link.
    if set to "" or not set at all then the language will be as the browser interface language or English if it is not supported.
    ""
    1thumbnailViewBtnThumbnail viewer button (true - view button, false - hide button).true
    2searchBtnSeraching button (true - view button, false - hide button).true
    3nextPreviousBtnnext and previous button (true - view button, false - hide button).true
    4pageNumberTxtpage number textbox  (true - view text, false - hide text).true
    5totalPagesLabeltotal pages label (true - view label, false - hide label).true
    6zoomBtnszoom buttons (true - view buttons, false - hide buttons).true
    7scaleSelectorscale selector (true - view selector, false - hide selector).true
    8presantationModeBtnpresentation mode button (true - view button, false - hide button).true
    9openFileBtnopen file button (true - view button, false - hide button).true
    10printBtnprint button (true - view button, false - hide button).true
    11downloadBtndownload button (true - view button, false - hide button).true
    12bookmarkBtnbookmark button - open current view in new window (true - view button, false - hide button).true
    13secondaryToolbarBtnsecondary toolbar button (true - view button, false - hide button).true
    14firstPageBtngo to first page button (true - view button, false - hide button).true
    15lastPageBtngo to last page button (true - view button, false - hide button).true
    16pageRotateCwBtnrotate page clockwise button (true - view button, false - hide button).true
    17pageRotateCcwBtnrotate page counter clockwise button (true - view button, false - hide button).true
    18cursorSelectTextToolbarBtnselect text button (true - view button, false - hide button).true
    19cursorHandToolbarBtncursor hand button (true - view button, false - hide button).true


    docxSetting:

    #namedescriptiondefault value
    1isRtl

    set if the docx document is "rtl" (right to left) or "ltr" (left to right).
    set "auto" for automatic detaction (work for hebrew only)
    "auto"
    2
    For the others options see mammoth.js github page


    pptxSetting:

    #namedescriptiondefault value
    1slidesScaleChange Slides scale by percent(%). for orginal size set this option to "" or "100%"""
    2slideModeIf true, turn on presentation mode. The settings of the presentation mode are controlled by the variables "slideModeConfig"false
    3keyBoardShortCutIf true, enable to enter or exit from presentation mode by keyboard shortcut F5false
    4mediaProcessif true, then process video and audio files.If 'false', you can not play and see or hear the videos and audios embedded in the presentation.true
    5jsZipV2url link to jsZip version 2.
    This allows the ability to load jsZip v.2 in case jsZip v.3 is loaded for another use.
    false
    6slideModeConfigsettings of the presentation mode.
    for more details click here
    {}
    7slideModeConfig.firstThe first slide that will be loaded.1
    8slideModeConfig.navshow ('true') or hide ('false') navigator buttons.true
    9slideModeConfig.navTxtColorcolor of slide number text and total slides number shown in navigator area."black"
    10slideModeConfig.keyBoardShortCutif true , enable to control presentation by keyboard shortcuts.
    for keyboard shortcuts list click here
    false
    11slideModeConfig.showSlideNumif true , show slide number in navigator area.true
    12slideModeConfig.showTotalSlideNumif true , show total slides number in navigator area.true
    13slideModeConfig.autoSlideoptions:'false' or number (seconds). if set 'false' it disable auto slide mode. if set number then auto slide mode will be enabled and the number will be the time between slides.1
    14slideModeConfig.randomAutoSlideif true and autoSlide mode are enabled then The slides appear in random order.false
    15slideModeConfig.loopif true, in presentation mode , after last slide will go to first slide. in auto slideMode, the presentation will play in loop.false
    16slideModeConfig.backgroundcolor of presentation background.false
    17slideModeConfig.transitiontransition types options: "slid","fade","default","random"."default"
    18slideModeConfig.transitionTimeTime delay in seconds between slides.1
    19slideType (v1.11.0)slide viewr option: 'divs2slidesjs', 'revealjs'(https://revealjs.com)"divs2slidesjs"
    20revealjsPath (v1.11.0)path to js file of revealjs.'./revealjs/reveal.js'
    21revealjsConfig (v1.11.0)revealjs options. see https://revealjs.com */


    sheetSetting:

    #namedescriptiondefault value
    1jqueryuiif true , will use jQuery-ui interface.
    To use this option, must include "jquery-ui.js" and "jquery-ui.css" in the HEAD area.
    false
    2
    For the others options see handsontable tutorial


    imageSetting:

    #namedescriptiondefault value
    1
    For options see verySimpleImageViewer github page