Giter Club home page Giter Club logo

Comments (4)

nanocom avatar nanocom commented on August 16, 2024

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.

nanocom avatar nanocom commented on August 16, 2024

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.

plutext avatar plutext commented on August 16, 2024

Does your pom contain:

    <dependency>
        <groupId>org.plutext</groupId>
        <artifactId>jaxb-xmldsig-core</artifactId>
        <version>1.0.0</version>
    </dependency>

from docx4j.

nanocom avatar nanocom commented on August 16, 2024

My app is not using Maven, and I had forgottent this dep, thanks!

from docx4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.