Comments (5)
Sure, I'd be happy to work on it; earliest time I would be able to push code would be Sunday evening.
from docx.
+1 for a replace header text.
I'd be happy to help with some initial direction.
from docx.
Sorry for a long time I'm not watching this repository. @AnnAddicks Could you add replace footer and some unit test ?
from docx.
Hi @nguyenthenguyen,
I just sat down to look at the footers and noticed a change to the ReplaceHeader function. If we are taking a user input for how many replaces should be done, is that per header or total? With the new changes that limits the number of changes to per header because we don't keep track of how many times it has been changed inside the loop. That is why initially I had it to not allow the user to pick a number.
I can make the footer code similar to what you have changed, but wanted to point this out. It would be a PITA to keep track per header since Replace doesn't return a count and considering some headers are for even pages and others for odd pages...I really didn't want to go down that rabbit hole.
from docx.
@AnnAddicks You are right! Because we can have mutiple header, footer file. You can remove num
params on ReplaceHeader
and do the same for ReplaceFooter
from docx.
Related Issues (15)
- Docx + templates HOT 1
- No license HOT 2
- read word document wrong HOT 1
- Extract plaintext HOT 1
- New line HOT 2
- Feature request: add replace image function HOT 3
- How to create a newline and dynamic table using this library? HOT 2
- 文档替换失败 HOT 1
- i want new paragraph(enter) not new lines(shift+enter) HOT 4
- Are loops supported? like foreach for HOT 1
- panic: zip: not a valid zip file
- Fattened replaced images
- Export to PDF? HOT 3
- 替换字符串时,传入键覆盖包括问题,比如 cover 与 str_cover ...
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.