Open tetreum opened 9 years ago
Alright, let me look into it. Can you send the file to my email at [removed]?
Sent, you can delete your email from the comment.
I'm also having the same problem, what is the solution for this?
@tetreum have you solved the problem?
The exception comes from one of the 3rd party library used in this project. You can't do anything, except to waiting for a fix.
@tetreum Oh I see, did you do some workaround about this issue?
Nope :( Before making a decision i looked for all current solutions, and the best working ones had a cheaper license of 8k€/year with page limitation or 2.5k€/year... Or they didn't just work in linux cli.
The problem here is that this is a "wrapper" so @yeokm1 can't fix the big issues, as they aren't in his code.
Also making a converter to work with all shitty proprietary formats is a big pain. So i understand there are no perfect solutions yet. If you find any, feel free to reply here.
Ok thank you thank you. Have about you? Did you find any solution in converting the doc to pdf?
Thanks for @tetreum for the replies. Like you said I can't find a solution to this problem either as I don't control the code in the libraries I use. I hope all of you will understand.
I have the same problem too. I tried both docx4j3.2.1 and 3.3.1.
I want this issue to be reopened otherwise I'll open another one.
Hi @shusen007
I do not understand when you say you tried the different docx4j versions. Did you mean you recompiled my code with the different libraries? If the problems originate from the libraries, there is nothing I can do about it.
I can open the issue again but understand that I no longer have resources to maintain this project. However, I'm open to new pull requests and willing to do quick tests before merging it. I'm also open to have another co-maintainer of this project.
Thanks. My error log:
Hope someone can identify the problem.
org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:109) at org.docx4j.Docx4J.toFO(Docx4J.java:568) at org.docx4j.Docx4J.toPDF(Docx4J.java:583) at ........ at java.lang.Thread.run(Thread.java:745) Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Cannot perform the transformation at org.docx4j.XmlUtils.transform(XmlUtils.java:1277) at org.docx4j.XmlUtils.transform(XmlUtils.java:1100) at org.docx4j.convert.out.common.AbstractXsltExporterDelegate.process(AbstractXsltExporterDelegate.java:66) at org.docx4j.convert.out.common.AbstractWmlExporter.process(AbstractWmlExporter.java:63) at org.docx4j.convert.out.common.AbstractWmlExporter.process(AbstractWmlExporter.java:32) at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:79) ... 91 more Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262) at org.docx4j.XmlUtils.transform(XmlUtils.java:1275) ... 96 more Caused by: java.lang.NullPointerException at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:280) at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:246) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) ... 102 more
@yeokm1 if i were you, i wouldn't have reopened this issue. Check @shusen007's profile, he is the sort of selfish user that only wants to things to get fixed for him, he didn't make any contribution to open source community. He just expects you to fix the problem. If he opens another issue, just block him from the repo ;)
@tobeorla Thanks for the advice! I'm fine with the issue being open although I have no means of solving them.
I have added a note at the top of README.md so people can understand the situation behind this project.
I have been tortured for too long /(ㄒoㄒ)/~~
I end up use Linux command line lowriter --headless --convert-to pdf fileNmae.docx to do the job for me.
Version: 1.8 I can provide the file (private) if needed.