Comments (12)
Hi!
Could you explain how do you do that using Word?
from docx.
I have never done this in Word my self, but I have seen many documents that look like that.
from docx.
Well, its all about text: "%1"
and what you put there for different levels. All the formatting is up to you.
https://docx.js.org/#/usage/numbering?id=using-ordered-lists-in-docx
If you provide some example document we can extract that format from there
from docx.
Okay, thanks 🙏 for your response.
This is an example of the document part is that have that arrangement
I just took screenshot for the part and it was already in PDF format.
from docx.
Unfortunately, I cannot help with pdf or images.
.docx is .zip with .xml files and there we can get exact format
So .docx file required
from docx.
Ok, this is the docx file with the same arrangement,
example_124722.docx
from docx.
This example doesn't have any numberings, the things you see are only paragraphs, spaces and tab stop combined :)
from docx.
So to attain that arrangement I need to play With spaces and tab stop? Or is there any other work round?
from docx.
You are correct.
I don't think there is workaround.
The only approach I could've thought didn't work:
lvl1: <w:lvlText w:val="%1."/>
lvl2: <w:lvlText w:val="%1 (%2)"/>
lvl3: <w:lvlText w:val="(%2)"/>
Leads to:
from docx.
Not something to complain about docxjs library, but rather Word (OOXML standard) that is not flexible enough for your case.
from docx.
I get the point.Thank you very much for your time
from docx.
Don't forget to close an issue once your problem is resolved :)
from docx.
Related Issues (20)
- Generate Table Of Contents (TOC) programmatically HOT 1
- What I am doing wrong ?
- Inconsistency in bulleted lists between Mac Pages, MSWord, and Google Docs. HOT 1
- can i add background color on entire header section? please suggest me HOT 4
- Use fitText In TextRun HOT 1
- Table of Content manual update option missing
- Table Styling Issue - Default & externalStyles
- Corrupted document when using async await for image load HOT 1
- NPM 8.5.0 Package / wrong types for patchDocument HOT 4
- patchDocument - input.prepForXml Error HOT 1
- Open exists docx file by Document ? HOT 1
- How to integrate HTML string into the docx? HOT 5
- nodenext: Module '"docx"' has no exported member 'Paragraph'. HOT 3
- Can i set border style for 'dashLargeGap'?
- Patching of values in Text Frames/Boxes HOT 1
- The same table may appear on different pages
- Corrupted document after using Patcher with version 8.4.0 HOT 2
- Using embedded fonts for client side generated files
- Text Frame not working correctly after save to docx file, and not support for almost doc viewer
- How can i set padding to a Paragraph? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docx.