office-to-html-traditional
Web icon

OFFICE TO HTML / File viewer

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 21 June 2024
 by 
5.0
 (1 rating)
office-to-html-traditional

OFFICE TO HTML / File viewer

Documentation
1.0.0


To use this Office to HTML (File viewer) you just need to drag and drop "OFFICETOHTML_FileView" block to your screen and set the upload widget id of your screen "select_file".

the "OFFICETOHTML_FileView" block previews your file on the screen here is some customization you can do in your file viewer for PDF, DOCX, PPTX, Sheet and image.

for customization, you just need to open the "Content" block inside the OFFICETOHTMLTraditional module and change the JavaScript code according to you.


IN TRADITIONAL APPLICATION "pdfSetting" MAY NOT WORK PROPERLY


options and settings:

          
               
                
            

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