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

Not respecting the headerfooter flags properly #607

Open
gjblajian opened this issue Feb 7, 2023 · 2 comments
Open

Not respecting the headerfooter flags properly #607

gjblajian opened this issue Feb 7, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gjblajian
Copy link

Describe the bug

When importing a document with a header / footer there are three possible state variables. titlePg in the sectPr indicates that the headerFooters first page property is on if it is absent it is off. When we added a First page header, enter a value then uncheck it the property on the importer is not resetting to false.

For even page header and footer the property should be based on the absence or presence of the evenAndOddHeaders element in the settings.xml. Presence being on absence being off. But the importer is always giving us false.

Reproduced step

Steps to reproduce the behavior:
See above

Expected behavior

A clear and concise description of what you expected to happen.
when the TitlePg element is present in the word xml sectionPr we expect the value to be true in the JSON when it is absent we expect the value to be false.

when the evenAndOddHeaders element is present in the word settings.xml we expect the value to be true in the JSON when it is absent we expect the value to be false.

Actual behavior

A clear and concise description of what you actual to happen.
when the TitlePg element is present in the word xml sectionPr we get true if you unselect/uncheck it in word the value still comes across as true.

when the evenAndOddHeaders element is present in the word settings.xml the value is always false regardless of whether or not the element is in the xml

Screenshots

first page unchecked
image

first page checked
image

evenAndOddHeaders unchecked
image

evenAndOddHeaders checked
image

Desktop (please complete the following information)

N/A

@gjblajian gjblajian added the bug Something isn't working label Feb 7, 2023
@gjblajian
Copy link
Author

@bokuweb could you please look at this? Thank you.

@bokuweb
Copy link
Owner

bokuweb commented Dec 2, 2023

I'll fix it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants