[MS Word] A jQuery Plugin That Allows an HTML Page To Be Converted | googoose

Googose allows you to convert any HTML content page into a properly formatted Microsoft Word (.doc) file.

Googoose is a jquery plugin that allows converting an HTML page and/or downloading it to an MS Word document with an eye on performance.

Benefits:

  • You now have the ability to view rich web content.
  • You can create Word documents programmatically without much work, using a third-party library, etc.
  • You can directly integrate this into sites using WYSIWYG editors (ex: WordPress). There is no need to install a plugin.

Must Read: How To Create a Responsive Navigation Menu In jQuery | MS Word Styles Menu

jQuery Plugin That Allows an HTML Page To Be Converted Details

Post NameMicrosoft Word Document Googoose
Author Nameaadel112
CategoryHTML & HTML5, Text Plugins
Official PageClick Here
Official Websitegithub.com
Publish DateMarch 27, 2021
Last UpdateAugust 3, 2023
DownloadLink Below
LicenseMIT

How to make use of it:

1. As you can see, you are required to include jquery in your page before googose:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>              
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/aadel112/googoose@master/jquery.googoose.js"></script>

2 The simplest usage will call googose when the page is loaded.

<script type="text/javascript">
$(document).ready(function() {
    var o = {
        filename: 'test.doc'
    };
    $(document).googoose(o);
});
</script>

3. Content rendered to a word document should be wrapped in a div with classname googoose-wrapper , by default.

<div class="googoose-wrapper"></div>

Options

Must Read: Show Password As Text Toggle for Bootstrap Forms Plugin

  • area: ‘div.googoose-wrapper’ – This is the default selector of HTML to wrap the Word doc in.
  • headerfooterid: ‘googoose-hdrftrtbl’ – This is used by the internals of googoose to manufacture headers and footers.
  • margins: ‘1.0in’ – the default CSS origins of the Word document.
  • zoom: ’75’ – the default Zoom percentage when the Word document opens.
  • filename: null – the file name to save as. used only by the default finish action.
  • size: ‘8.5in 11.0in’ – the default size of the Word document.
  • display: ‘Print’ – the default display mode to open the Word document in.
  • lang: ‘en-US’ – the language on the page. defaults to English US.
  • toc: ‘div.good goose.toc’ if used by the developer this jQuery selector will translate into a Word table of contents.
  • pagebreak: ‘div.googoose.break’ – if used by the developer at this jQuery selector will translate into a Microsoft Word page break.
  • headerarea: ‘div.googoose.header’ – the content in this jQuery selector will be put in the Microsoft Word document header.
  • footerarea: ‘div.googoose.footer’ – the content in this jQuery selector will be put in the document footer.
  • headerid: ‘googoose-header’ – used solely by the googoose internals
  • footerid: ‘googoose-footer’ – used solely by the googoose internals
  • headermargin: ‘.5in’ – CSS margin for the header.
  • footermargin: ‘.5in’ – the CSS margin for the footer.
  • currentpage: ‘span.googoose.currentpage’ – generally used in headers and Footers this whole displays the current page number.
  • totalpage: ‘span.googoose.totalpage’ – generally displayed in headers and Footers this jQuery selector when put into the HTML content will display the number of total pages.
  • finishaction: GG.finish – this is the default action that is called after the HTML has been rendered.
  • html: null – gets populated before finishaction
  • initobj: document – the root node

See Also –

[Multilingual] jQuery Spelling Number Plugin That Converts a Number Into Words
Simplest WebForms Validation jQuery Plugin | DjValidator
Vue Composition Function for Form Validation Javascript Library


See Demo And Download

microsoft-word-document-googoose

Official Website(aadel112): Click Here

This superior jQuery/javascript plugin is developed by aadel112. For extra Advanced Usage, please go to the official website.

Related Posts

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Leave a Reply

Your email address will not be published. Required fields are marked *