Just getting started with docx4j and finding it very useful. I've run into a hitch with HTML altChunks, though: I'd like the styling of the main document to flow through instead of using the style of the HTML (which is defaulting to Times New Roman etc.).
I've found a post describing an AltChunkProperties found within the Open XML SDK that can be configured to make the altChunk import match the document style:
I am using docx4j-2.7.0 version for comparing two docx files, and working on windows plat form, using jdk1.6. I am facing this issue while comparing two documents. I am taking some text content from ui and using that creating the first docx file. with same text content with some small corrections here and there i am creating the second docx file. while compare these tow files and create the html version of compared document should ...
Thanks for the great job, I am already using this library for many weeks for my society and it is really accurate for Word documents.
Nevertheless, I have a little problem currently for changing series, categories and values in a graphic. In fact, there is not common interface for series (CTAeraSer, CTBarSer, etc...). For now i need to use introspection to bypass this. I would like to know if you are concerned by ...
hi all, i wonder if there's an easy way by docx4j to browse the headings with the hierarchy in docx file? for example: <w:p w:rsidR="00A02F85" w:rsidRDefault="00A02F85" w:rsidP="00A02F85"> <w:pPr> <w:pStyle w:val="Heading2" /> </w:pPr> <w:r> <w:t>Chapter1</w:t> </w:r> </w:p> <w:p w:rsidR="00A02F85" w:rsidRDefault="00A02F85" w:rsidP="00A02F85"> <w:pPr> <w:pStyle w:val="Heading2" /> </w:pPr> <w:r> <w:t>Chapter2</w:t> </w:r> </w:p> <w:p w:rsidR="00A02F85" w:rsidRDefault="00A02F85" w:rsidP="00A02F85"> <w:pPr> <w:pStyle w:val="Heading3" /> </w:pPr> <w:r> <w:t>Chapter2.1</w:t> </w:r> </w:p>
I have been using docx4j to automatically build reports from our database and I keep coming across the problem of fonts and font sizes. There have been a view posts on this forum about this but I can't seem to get it working. I am looking for a way to print lines with font "Courier New" and font size 8. I have looked trough styles.xml, knownstyles.xml, even tried to do it the way ...
Any body knows how to personalize the conversion? In my case I need to exclude few html tags in order to support EDGAR standard http://www.sec.gov/info/edgar/ednews/edhtml.htm (something like html 4.0 but without a few tags).
We have a requirement to generate MS-Word file from content stored into different database tables. Some of these content are HTML snippets (well formed HTML). I have managed to create the required Word document by using AlternativeFormatInputPart.
Now the problem I'm facing is styling some of these text segments. In particular, one of the HTML fragments contain multilevel list elements - they are being rendered as such in the generated document. But I need to ...
Writing a small program to convert reports from an iSeries, into word docs, and had some success, which is great. It is being written in RPG, but invoking some java classes that have just wrapped up for convenience, some docx4J methods.
I have hit two issues. I am having some trouble identifying how to put a page into landscape oritenation for docx output? STPageOrientation seemed a good place to start, but that seems ...
i want to know how can we apply highlight code for docx to pdf conversion. i am not able to see highlighted words in my pdf file. so please help me out . thank you in advance.