lalalic / docx2html Goto Github PK
View Code? Open in Web Editor NEWa converter from docx to html
a converter from docx to html
Hello. Here is the assembly problem.
./node_modules/docx2html/lib/docx/html/textbox.js
Cannot find file: 'Shape.js' does not match the corresponding name on disk: '.\node_modules\docx2html\lib\docx\html\shape.js'.
Hi,
Could you provide any basic example of how this could be used?
Or point me to the code line, where I can see that.
Regards,
Chrome 67.0.3396 (Mac OS X 10.13.5) docx2html style section width, height, margin FAILED
Expected '816px' to be '612pt'.
at docx2html.catch.then.html (/var/folders/_w/jp7z4q_j2cdct6f9t5x86qkc0000gn/T/7ad8210a5d
When I tried to import this library in my application, it is throwing the below error.
"Uncaught Error: Cannot find module 'docx2html'"
Please check and let me know, whether any other dependency is required or is it an issue in the base package itself?
If there is an issue in the base package, please help in the resolution.
Thanks in advance.
The images from header and footer are not being displayed, or extracted.
Can you check please, or show me where i can edit it?
Uncaught (in promise) DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '#A .1{}'.
This error will occur in some files, for example: https://hebeieditor.sinaapp.com/ex.docx
This is a strange package?
is it possible to pass a url to the constructor in the browser the same it's done in node? or, alternatively, is it possible to pass the raw text of the file to the constructor, if, for example, it's loaded asynchronously?
i try to use it on my project but its not converting images..
hi
when docx conert to html, image tag indicates notsupport.
How can I set img option in nodejs?
I declared obj.asImageURL and gave it as an options, but it didn't work.
I get an error with some documents:
Uncaught (in promise) TypeError: this.constructor.Level is not a constructor list.js:12
Is it possible to fix this error?
Thank!
Links/anchors in a document which contain a # have it and everything after the # stripped off. Is there a way to bypass this functionality to keep the original link?
Original:
<a href="https://example.com/file.mp3#t=00:02:00">
<a href="https://example.com/file.pdf#page=2">
After parse:
<a href="https://example.com/file.mp3">
<a href="https://example.com/file.pdf">
When converting docx created or edited in Google Docs or OnlyOffice nothing happens. There are no errors, it just doesn't work.
This lib was working fine, until a docx throwed an error that breaks JS :
TypeError: this.field is null - docx2html.min.js:14:19890
I think that a "!" is missing in the following condition :
if (this.field) this.field = new _field2.default(instruct, this.wDoc, this, type);
To make it works again I had to change it to :
if (!this.field) this.field = new _field2.default(instruct, this.wDoc, this, type);
Nice lib ๐
it seems a very nice work, but after i install with
'npm install --save docx2html'
it throw the error
module.js:327
throw err;
^
Error: Cannot find module 'docx2html'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
The import var _Shape2 = require('./Shape');
from the file ./node_modules/docx2html/lib/docx/html/shape.js
Is being referenced incorrectly thus causing build issues with your library.
Please assist with resolving the above mentioned issue.
I have a very complex document which raises many errors which are not managed by docx2html, which just stops without any warning, for example:
..\docx4js\src\openxml\docx\document.js:9 Uncaught (in promise) TypeError: Cannot read property 'documentElement' of null
at document.parse (..\docx4js\src\openxml\document.js:28)
at document.parse (..\docx4js\src\openxml\docx\document.js:9)
at ..\src\index.js:6
I am a javascript developer, but not a Node.js developer, and usual methods that I use to debug a javascript code do not work for docx2html: opening console, looking at error messages, clicking on the referred .js files, examining them, putting linebreaks and using local overrides to make changes and test.
I would like to add some error messages any time docx2html crashes, to avoid crashing and to warn me next times. How can I do it?
In above error I see it is referred "..\docx4js\src\openxml\docx\document.js", which actually maps to "file:///C:/MYPATH/docx2html/dist/..\docx4js\src\openxml\docx\document.js"... but there is no "docx4js" folder in my installation of doc2xhtml, so where does the browser look for docx4js, and why aren't its source shown in "Sources" tab of Chrome?
Hi, I tried running your demo, it worked fine and displayed the output, but when I tried to download using the method mentioned I could not do that, it is giving me error "Uncaught (in promise) TypeError: props is undefined", It would be really helpful if you could provide some sample code!! Thank You! Here's the code for your reference:
function test(input) { require("docx2html")(input.files[0], { container: document.querySelector("#container") }) .then(html => { html.download(); }) }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.