Giter Site home page Giter Site logo

lcsouzamenezes / convert-html-to-docx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amalamrani/convert-html-to-docx

0.0 0.0 0.0 22.87 MB

Allows you to convert an HTML document into DOCX

License: GNU General Public License v3.0

JavaScript 93.62% HTML 4.70% CSS 1.68%

convert-html-to-docx's Introduction

Convert HTML to DOCX document

Author Amal Amrani

Author URI: amrani.es

convert_html_to_docx allows you to convert a HTML Document To Word .docx. The different elements supported and parsed by this library are the following:

Bold <strong> Cursive <em> Paragraph <p> Section <div> Lists nested with bullets or numbered <ul> or <ol> Tables <table> Links <a href > Quotes <blockquote> Images <img>

The images must be in the same location as the HTML document in order to be accessed and converted.

The images URL in the HTML document are converted first to Base64, before converting the document to .docx. The generated documents support RTL orientation for texts that require writing from right to left.

To use this converter, you only need to include the following files that are already included in the .zip to download:

To save the .docx:

Stuk-jszip/dist/jszip.min.js Stuk-jszip/vendor/FileSaver.js

To create the different documents that integrate and define the .docx structure:

convert_html_to_docx.js

You can see an example here example to convert html to docx link

convert-html-to-docx's People

Contributors

amalamrani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.