Coder Social home page Coder Social logo

nativedocuments / docx-wasm-client-side Goto Github PK

View Code? Open in Web Editor NEW
47.0 3.0 5.0 10 KB

Microsoft Word doc/docx to PDF conversion, client-side in-browser, using docx-wasm

HTML 2.79% JavaScript 97.21%
docx pdf docx-to-pdf ms-word-converter docx-wasm chrome-browser firefox

docx-wasm-client-side's Introduction

docx-wasm-client-side

Description

docx to PDF conversion, entirely in the browser. Reduce server loads, and even allow the client to work offline!

docx-wasm is a World first, production ready commercial grade solution for handling Microsoft Word documents in pure javascript + wasm, proudly brought to you by Native Documents. PDF output is achieved using the Word compatible page layout we developed for our web-based document editing/viewing components (more information: https://nativedocuments.com).

docx-wasm-client-side executes this client-side in-browser (including on Android).

Installation

Get an ND_DEV_ID, ND_DEV_SECRET pair at https://developers.nativedocuments.com/

Configure your environment:

> npm install
> npm start --nd-dev-id="YOUR DEV ID" --nd-dev-secret="YOUR DEV SECRET" --nd-user=test --nd-save-config

For now, if you later find you want to run npm install again, please delete package-lock.json first.

Convert a docx

Start the local server:

> npm run dev-server --nd-user=test

Visit http://localhost:8080 using a recent Chrome or Firefox.

This is our first release for demo purposes. iOS support is a known issue (let us know if its a priority for you).

Untrusted Origins

TLDR: unless you use HTTPS, you can only access the server locally. This is a client-side restriction, for testing purposes you can configure Chrome or Firefox to allow access to an untrusted origin. For example, chrome://flags/#unsafely-treat-insecure-origin-as-secure

See further https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

Registration

You'll need a ND_DEV_ID, ND_DEV_SECRET pair to use this module (or an ND_LICENSE_URL). We have a generous free tier, you can get your keys at https://developers.nativedocuments.com/

An ND_LICENSE_URL is necessary for offline operation (since ND_DEV_ID, ND_DEV_SECRET pair does a periodic online check). Please email us if you want to try ND_LICENSE_URL. Note: fully offline operation is currently a TODO.

Troubleshooting

If you are having trouble with the sample code, please check the error message.

  • If no documents work and you see "browser too old" in Chrome, or a security error in Firefox, are you testing against an untrusted origin? See above.

  • If you see "conversion error", this means something is wrong with this particular document; see the console for more detail.

Getting Help

If you continue to have problems, please ask a question on StackOverflow, using tags #docx-wasm, #node.js, #ms-word, and #pdf as appropriate.

docx-wasm-client-side's People

Contributors

jasonharrop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docx-wasm-client-side's Issues

Would love to know if your team would consider open sourcing your converter?

Seems unlikely to get anyone from NativeDocuments attention on this but it seemed like you had a really promising tool here - so sad to see it go. We'd all hate to see this project disappear if the progress that had been made could be respun as an opensource solution that saves dev folks time (and money). Any chance the internet community could receive this beauty? For example, the fuzzy.ai team opensourced their technology after their company ended (its on gitlab). I'm sure there are many who would find this useful.

Trying to obtain license.

Hi,
trying to obtain a license to use for a comercial client. The nativedocuments.com website has been down for months. Is this still active and is it possible to purchase a license?

Open source docx-wasm!

Seeing as this library is no longer available to be licensed and is obviously no longer maintained. Please consider open-sourcing to pay it forward.

This repository is no longer maintained and will not be open-sourced

This repository is no longer maintained

Since the last commit was over 2 years ago. (see the last commit)
By the way, there has only been one commit since the initial release. (see the commit history)

These two commits were done on the same day.

This repository will NOT be open-sourced

See the issue #4 in particular this comment.

In short: This repository will NOT be open-sourced.

And now ?

Now I open this issue to discuss alternatives and other solutions.

  1. Do you know of other ways to convert docx file to pdf client side?
  2. Do you know of an alternative library?

Open source and maintained solutions will be appreciated. However feel free to give any suitable solution.


Any help would be appreciated.
This will help anyone in my case who will come across this repository.

Thank you in advance for your future contributions.

wrapper for vue.js?

Hi

How can I use NativeDocuments in a vue.app. Could you provide a Vue Module or Plugin. So that I don't have to mess around with my very limited coding skills?

Impossible to install docx-wasm, error 403

I just cloned this repository, and when executed:

npm i

It returned the error:

npm ERR! code E403
npm ERR! 403 Forbidden - GET https://s3-us-west-2.amazonaws.com/nd-codebuild/nd-core/nd-core/nd-npm-docx-wasm-
npm ERR! A complete log of this run can be found in:

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.