Comments (4)
Edit: I deleted manually the relation to the footer, still having the problem.
I thing it's related to the stylesWithEffects.xml relation.
Edit: Now I've put exactly the same word/_rels/document.xml.rels in both documents, still having the issue.
from docx4j.
And below is the exact difference between both word/stylesWithEffects.xml : the problematic document is the same as the "normal" one, except that it adds those styles (note that I have a french Word).
Please note that I always get the same warning when opening this document: WARN newPartForContentType, DefaultPart used for part '/word/stylesWithEffects.xml' of content type 'application/vnd.ms-word.stylesWithEffects+xml'
<w:style w:type="paragraph" w:styleId="En-tte">
<w:name w:val="header"/>
<w:basedOn w:val="Normal"/>
<w:link w:val="En-tteCar"/>
<w:uiPriority w:val="99"/>
<w:unhideWhenUsed/>
<w:rsid w:val="00185AA3"/>
<w:pPr>
<w:tabs>
<w:tab w:val="center" w:pos="4536"/>
<w:tab w:val="right" w:pos="9072"/>
</w:tabs>
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
</w:pPr>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="En-tteCar">
<w:name w:val="En-tête Car"/>
<w:basedOn w:val="Policepardfaut"/>
<w:link w:val="En-tte"/>
<w:uiPriority w:val="99"/>
<w:rsid w:val="00185AA3"/>
</w:style>
<w:style w:type="paragraph" w:styleId="Pieddepage">
<w:name w:val="footer"/>
<w:basedOn w:val="Normal"/>
<w:link w:val="PieddepageCar"/>
<w:uiPriority w:val="99"/>
<w:unhideWhenUsed/>
<w:rsid w:val="00185AA3"/>
<w:pPr>
<w:tabs>
<w:tab w:val="center" w:pos="4536"/>
<w:tab w:val="right" w:pos="9072"/>
</w:tabs>
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
</w:pPr>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="PieddepageCar">
<w:name w:val="Pied de page Car"/>
<w:basedOn w:val="Policepardfaut"/>
<w:link w:val="Pieddepage"/>
<w:uiPriority w:val="99"/>
<w:rsid w:val="00185AA3"/>
</w:style>
<w:style w:type="table" w:styleId="Grilledutableau">
<w:name w:val="Table Grid"/>
<w:basedOn w:val="TableauNormal"/>
<w:uiPriority w:val="59"/>
<w:rsid w:val="00E9410D"/>
<w:pPr>
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
</w:pPr>
<w:tblPr>
<w:tblInd w:w="0" w:type="dxa"/>
<w:tblBorders>
<w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/>
</w:tblBorders>
<w:tblCellMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:bottom w:w="0" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tblCellMar>
</w:tblPr>
</w:style>
<w:style w:type="character" w:styleId="Marquedecommentaire">
<w:name w:val="annotation reference"/>
<w:basedOn w:val="Policepardfaut"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:unhideWhenUsed/>
<w:rsid w:val="00AE47AD"/>
<w:rPr>
<w:sz w:val="16"/>
<w:szCs w:val="16"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Commentaire">
<w:name w:val="annotation text"/>
<w:basedOn w:val="Normal"/>
<w:link w:val="CommentaireCar"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:unhideWhenUsed/>
<w:rsid w:val="00AE47AD"/>
<w:pPr>
<w:spacing w:line="240" w:lineRule="auto"/>
</w:pPr>
<w:rPr>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="CommentaireCar">
<w:name w:val="Commentaire Car"/>
<w:basedOn w:val="Policepardfaut"/>
<w:link w:val="Commentaire"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:rsid w:val="00AE47AD"/>
<w:rPr>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Objetducommentaire">
<w:name w:val="annotation subject"/>
<w:basedOn w:val="Commentaire"/>
<w:next w:val="Commentaire"/>
<w:link w:val="ObjetducommentaireCar"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:unhideWhenUsed/>
<w:rsid w:val="00AE47AD"/>
<w:rPr>
<w:b/>
<w:bCs/>
</w:rPr>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="ObjetducommentaireCar">
<w:name w:val="Objet du commentaire Car"/>
<w:basedOn w:val="CommentaireCar"/>
<w:link w:val="Objetducommentaire"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:rsid w:val="00AE47AD"/>
<w:rPr>
<w:b/>
<w:bCs/>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Textedebulles">
<w:name w:val="Balloon Text"/>
<w:basedOn w:val="Normal"/>
<w:link w:val="TextedebullesCar"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:unhideWhenUsed/>
<w:rsid w:val="00AE47AD"/>
<w:pPr>
<w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
</w:pPr>
<w:rPr>
<w:rFonts w:ascii="Tahoma" w:hAnsi="Tahoma" w:cs="Tahoma"/>
<w:sz w:val="16"/>
<w:szCs w:val="16"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="TextedebullesCar">
<w:name w:val="Texte de bulles Car"/>
<w:basedOn w:val="Policepardfaut"/>
<w:link w:val="Textedebulles"/>
<w:uiPriority w:val="99"/>
<w:semiHidden/>
<w:rsid w:val="00AE47AD"/>
<w:rPr>
<w:rFonts w:ascii="Tahoma" w:hAnsi="Tahoma" w:cs="Tahoma"/>
<w:sz w:val="16"/>
<w:szCs w:val="16"/>
</w:rPr>
</w:style>
from docx4j.
Does your pom contain:
<dependency>
<groupId>org.plutext</groupId>
<artifactId>jaxb-xmldsig-core</artifactId>
<version>1.0.0</version>
</dependency>
from docx4j.
My app is not using Maven, and I had forgottent this dep, thanks!
from docx4j.
Related Issues (20)
- The generated class names are all numbers. HOT 3
- handling broken node docx library output HOT 3
- NullPointerException in deleteEmbeddedFontTempFiles
- Is there any plan to implement support for text boxes and shapes in docx to html conversion?
- Converting xHTML to docx doesn't keep table width HOT 1
- Add part for .wdp JPEG XR HOT 2
- Version 11.4.8 and 11.4.9 - What would cause this ? HOT 3
- Closed
- When being used in AWS lambda environment , its unable to run and throws an exception. HOT 1
- Excessive logs on startup HOT 1
- XHTMLImporterImpl can't handle converting custom data attributes for br tags to xhtml
- FileInputStream is not closed, causing the image to not be deleted HOT 1
- Unable to generate Flat XML for docx containing a diagram
- 🚨 New namespace "w16du" was added in the upcoming office update HOT 4
- using VariablePrepare.prepare won't prepare all variables correctly
- ignore namespace w16du not in namespaces list HOT 2
- Add html type content inside content control HOT 1
- Docx4J.toPDF(...) fails on links without destination
- css style: overflow-wrap: break-word didn't work when export to pdf
- java.lang.ClassNotFoundException: com.plutext.merge.DocumentBuilder 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 docx4j.