Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support header/footer #9

Open
JohnMcLear opened this issue Dec 16, 2013 · 9 comments
Open

Support header/footer #9

JohnMcLear opened this issue Dec 16, 2013 · 9 comments

Comments

@JohnMcLear
Copy link
Contributor

As per title

@stepjanssen
Copy link

I've been researching docx converters recently. Many seem to have issues with headers and footers. Is it possible to explain why it's tough to implement this?

@mwilliamson
Copy link
Owner

I don't know about other tools, but Mammoth doesn't convert headers and footers because it's not obvious what the correct behaviour when converting to HTML would be in the general case.

@shubhamgoyal
Copy link

shubhamgoyal commented Nov 12, 2017

@mwilliamson I started to make some progress trying to put headers and footers at the ends and after every hard page break. I have only been playing around with mammoth for 1 day, so I could probably be doing a whole lot of things better. Your feedback would be greatly appreciated - shubhamgoyal/python-mammoth@57e5d29

@jasobar
Copy link

jasobar commented Mar 9, 2018

I'm hoping to use Mammoth in a workflow preparing docx files for epub.
For that, I have to access page information (page numbers etc) that's in the headers of the docx pages.

Even if header and footer information was default ignored by Mammoth, it would be fantastic if I could somehow inject their content via the style map.

@alekmeckaroski
Copy link

Hi all, do we have any updates on this issue?

@rpsirois
Copy link

rpsirois commented Apr 8, 2023

+1 for feature request, at least in raw text if not html.

@moo2u2
Copy link

moo2u2 commented Jul 24, 2023

As this functionality has already been added to the python version I ported that PR to this library in my PR #373.
Not sure the reasoning behind flat out refusing to add the feature to this library, and I doubt my PR will ever be merged, but hopefully some find it useful.

@gastonparente
Copy link

+1 for this feature, totally necessary

@mwilliamson
Copy link
Owner

I'm not sure when or if I'll get time to work on it, but having a minimal example document and the HTML you'd expect to see generated for each of your use cases would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants