Questions tagged [docx4j]

Docx4j is an open source (ASLv2) Java library for manipulating Microsoft OpenXML files (Word docx, Powerpoint pptx, and Excel xlsx) via JAXB

Docx4j is a Java library for manipulating Microsoft OpenXML files (Word docx, Powerpoint pptx, and Excel xlsx). It uses JAXB to create the in-memory representation.

It is similar to Microsoft's OpenXML SDK, but for Java. docx4j uses JAXB to create the in-memory object representation.

It is available under the Apache License (v2).

docx4j was created by Plutext Pty Ltd in 2008 - using OpenXML4J for the OPC piece. Plutext still drives the project, but since then docx4j has benefited from contributions from many individuals. The contributors are listed in docx4j's pom.xml.

The docx4j online demo is available here.

911 questions
0
votes
2 answers

Render docx file in a browser

I'm using docx4j to convert a microsoft word document into a pdf then displaying it in a browser http://www.docx4java.org/trac/docx4j and it works well for a preview. The problem I'm facing is that this conversion loses most of the microsoft word…
JKK
  • 436
  • 2
  • 11
  • 22
0
votes
0 answers

Bullet point missing in
  • when converting DOCX to HTML Using DOCX4J
  • The following code is from the sample code from docx4j. public void convertDocxToHtml2() throws FileNotFoundException, Docx4JException{ String inputfilepath = System.getProperty("user.dir") + myPath; boolean save = true; // Document…
    0
    votes
    0 answers

    docx4j: All styles disappear from the doc upon exporting with Eclipse

    I have a program which simply creates a table with 2 columns, left column is set to right orientation. When I test in eclipse the program works fine, it creates the table with the borders (as I have defined in the program itself) and the style…
    Zezombye
    • 321
    • 4
    • 16
    0
    votes
    1 answer

    MS-Word breaking text into character runs

    I have a task where I need to put placeholders in my .docx files and automatically replace them with information that I have. I tried having ${VARNAME} as the placeholder syntax but in the document.xml for that docx file I see $, {, VARIABLE and }…
    Aditya Bahuguna
    • 647
    • 7
    • 22
    0
    votes
    2 answers

    Docx4j gives error when I try to read content of existing docx file

    I am trying to read the content of a docx file from my system using Docx4Java. I have searched enough for the answer but unfortunately couldn't find one. Below is the error I got while I tried to implement my code. java.io.FileNotFoundException:…
    Vishal A
    • 144
    • 3
    • 17
    0
    votes
    1 answer

    Docx4j having issue with some styles while converting html document to docx

    I have an issue with some styles after converting this html file to document.