Issue 228 in xdocreport: Help me for convert docx to pdf with XDocReport 10.1

460 views
Skip to first unread message

xdocr...@googlecode.com

unread,
Feb 21, 2013, 9:54:28 AM2/21/13
to xdocr...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 228 by administ...@iessystem.com: Help me for convert docx to pdf
with XDocReport 10.1
http://code.google.com/p/xdocreport/issues/detail?id=228

I did like the Docx Reporting in WEB Application with Dispatcher for Google
App Engine.

The version which i tried are docxandvelocity.converters-1.0.0 and 10.1 and
for xx-gae.jar is also.

And the result to docx report is no problem but when i give the parameter
converter=PDF_ITEXT is error

XDocReport Servlet: Error report generation
Cannot find converters via ITEXT for to=PDF for
from=DOCXfr.opensagres.xdocreport.converter.XDocConverterException: Cannot
find converters via ITEXT for to=PDF for from=DOCX
at
fr.opensagres.xdocreport.converter.ConverterRegistry.internalFindConverter(ConverterRegistry.java:158)
at
fr.opensagres.xdocreport.converter.ConverterRegistry.findConverter(ConverterRegistry.java:74)
at
fr.opensagres.xdocreport.document.AbstractXDocReport.getConverter(AbstractXDocReport.java:664)
at
fr.opensagres.xdocreport.document.web.AbstractProcessXDocReportServlet.doProcessReportWithConverter(AbstractProcessXDocReportServlet.java:319)
at
fr.opensagres.xdocreport.document.web.AbstractProcessXDocReportServlet.doGenerateReport(AbstractProcessXDocReportServlet.java:246)
at
fr.opensagres.xdocreport.document.web.AbstractProcessXDocReportServlet.processRequest(AbstractProcessXDocReportServlet.java:111)
at
fr.opensagres.xdocreport.document.web.BaseXDocReportServlet.doGet(BaseXDocReportServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)




Attachments:
DocxProjectWithVelocityController.java 1.5 KB
MyDispatcher.java 573 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

xdocr...@googlecode.com

unread,
Feb 21, 2013, 10:05:20 AM2/21/13
to xdocr...@googlegroups.com
Updates:
Status: Accepted
Owner: angelo.z...@gmail.com

Comment #1 on issue 228 by angelo.z...@gmail.com: Help me for convert docx
1) Please check you have fr.opensagres.xdocreport.converter.docx.xwpf in
your classpath wich register the IConverter for docx->pdf via iText.

2) please try converter=PDF_XWPF

xdocr...@googlecode.com

unread,
Feb 21, 2013, 10:56:54 AM2/21/13
to xdocr...@googlegroups.com

Comment #2 on issue 228 by administ...@iessystem.com: Help me for convert
1. The image is all of my libs.
2. Passed.

Thank you very much.

xdocr...@googlecode.com

unread,
Feb 21, 2013, 10:58:05 AM2/21/13
to xdocr...@googlegroups.com

Comment #3 on issue 228 by administ...@iessystem.com: Help me for convert
1. The lib's image list.
2. Passed.

Thank you very much.

Attachments:
lib.png 25.1 KB

xdocr...@googlecode.com

unread,
Feb 21, 2013, 4:01:16 PM2/21/13
to xdocr...@googlegroups.com

Comment #4 on issue 228 by angelo.z...@gmail.com: Help me for convert docx
"2. Passed" means that it works?

xdocr...@googlecode.com

unread,
Feb 26, 2013, 5:31:47 AM2/26/13
to xdocr...@googlegroups.com

Comment #5 on issue 228 by administ...@iessystem.com: Help me for convert
Yes, It works.

xdocr...@googlecode.com

unread,
Feb 26, 2013, 5:42:58 AM2/26/13
to xdocr...@googlegroups.com
Updates:
Status: Invalid

Comment #6 on issue 228 by angelo.z...@gmail.com: Help me for convert docx
Ok that's cool, you should do too just converter=PDF if in your classpath
you have just one PDF converter.

Regards Angelo

Satyarao Kambapu

unread,
May 9, 2013, 9:58:45 AM5/9/13
to xdocr...@googlegroups.com, codesite...@google.com, xdocr...@googlecode.com
Hi Angelo,
     I followed same steps, but I am not succeeded in this sample project. I have same jars also in my class path. with **.gae.jars also. same source I have too. I had given converter=PDF_XWPF on url.
 Generating some partial pdf file, which is not opend with warn message about it has corrupted. For your more info, I am attaching my libs image. Please let me know solution for my problem?
sampleProjectJars.png

Angelo zerr

unread,
May 9, 2013, 10:12:44 AM5/9/13
to xdocr...@googlegroups.com, codesite...@google.com, xdocr...@googlecode.com
Hi,

At first for xhtml converter you need to use org.apache.poi.xwpf.converter.xhtml-gae
Try to add it and try to convert your docx with converter=XHTML_XWPF

For your PDF problem, it's very hard for me to help you if I have none trace or none error.
Perhaps your document is too complex? Have you tried to convert it with our converter demo http://xdocreport-converter.opensagres.cloudbees.net/ 

Regards Angelo


2013/5/9 Satyarao Kambapu <saty...@veersoftsolutions.com>
You received this message because you are subscribed to the Google Groups "xdocreport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdocreport+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Satyarao Kambapu

unread,
May 10, 2013, 12:54:25 AM5/10/13
to xdocr...@googlegroups.com, codesite...@google.com, xdocr...@googlecode.com
Hello Angelo,
    My docx is very simple one. Its not complex, contains only one merge field ($name). Yeah, I tried it in your demo also, was getting good pdf with converter demo.
--
Satya

Angelo zerr

unread,
May 10, 2013, 3:24:29 AM5/10/13
to xdocr...@googlegroups.com
With "doesn't work" information, I cannot help you more. Try to find some stacktrace error or debug XDocReport.

Have you add org.apache.poi.xwpf.converter.xhtml-gae and try to convert with converter=XHTML_XWPF? Is it working?

Regards Angelo


2013/5/10 Satyarao Kambapu <saty...@veersoftsolutions.com>

Satyarao Kambapu

unread,
May 10, 2013, 3:32:01 AM5/10/13
to xdocr...@googlegroups.com
  If I do the same for XHTML also, getting same corrupted output. No change in both converters.
But in my case XHTML output not is not required. Only I want pdf out from docx.

Satyarao Kambapu

unread,
May 10, 2013, 3:39:33 AM5/10/13
to xdocr...@googlegroups.com
I did not add any external source code or even docx. Everything is same from your doc. Already somebody posted query regarding this, he got solution, but why I am not?
He (who is belongs to this mail subject) was also done the same job on AppEngine, but he got great pdf.
--
Satya

Angelo zerr

unread,
May 10, 2013, 4:19:36 AM5/10/13
to xdocr...@googlegroups.com
Sorry I cannot help you more without stacktrace error.

@Pascal : if we find time, it should be cool to create a webapp demo with GAE for reporting+converter.




2013/5/10 Satyarao Kambapu <saty...@veersoftsolutions.com>
Reply all
Reply to author
Forward
0 new messages