We are using the export-fo API to convert a word document to PDF. If the word is a full page document with a header(The word document fits into a single page), the pdf generated fits into two pages instead of one page. Please advise if this I a known issue and if there is solution for this problem. Reducing the margin or using a smaller font are some of the workarounds, we are using to ...
are there methods to help find which list items belong together when they don't have the same numId. For example, in word, these display as the same list - one at level 2 and the next at level 3 -- but in the xml, they have different numId values
Hi!I see the github sourceCode about xlsx4j.I tried load SpreadsheetMLPackage with normal xlsx file inputstream.But,when i load SpreadsheetMLPackage with inputsteam who generated from Freemarker template,get some exception.The exception infomation as follows: javax.xml.bind.UnmarshalException: 意外的元素 (uri:"urn:schemas-microsoft-com:office:spreadsheet", local:"Workbook")。所需元素为<{http://schemas.microsoft.com/office/2006/xmlPackage}package>,<{http://schemas.microsoft.com/office/2006/xmlPackage}xmlData> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:726) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:247) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:242) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:109) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1131) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:556) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:538) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:153) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ...
I have a word template with many text fields and checkboxes How to use docx4j to update values of these text fields (tontents) and check/uncheck checkboxes? I basically want to fill docx form programmatically using docx4j Is it possible?
I'm trying to achieve DOCX to PDF or XHTML transformation with Math equations. I saw that Docx4j does not support OMML. I also tried to search the forum, I was able to find some quite old threads that are not really helping me.
So I am trying to pre-process the DOCX before sending it to DOCX4J. I used Apache POI to iterate over the paragraphs and I was able to transform equations into MathML ...
I'm now trying to convert HTML into pptx with XHTMLtoPPTX, and I have a p tag with some text inside that I want to turn it into shape, but I don't know how to determine the cx and cy of the CTPositiveSize2D object.I want to dynamically set cx and cy through the contents of the p tag. I hope to get help, thanks a lot.
Question 1: Is there a way of finding out what the column number and or ruler position of a character is in a document? In word each character has a column number attached to it which specifies its x-position (horizontal position) on a line .
Question 2: Suppose I am writing a sentence to a word document. As I am writing it to ...