Page 1 of 1

Have Document Preview In app

PostPosted: Sat May 11, 2013 8:46 am
by wreed12345
I am creating a GUI with a jframe and was wondering if there was some way to preview the document while creating it?

Re: Have Document Preview In app

PostPosted: Sat May 11, 2013 4:49 pm
by jason
Have a look at the docx4all source code, at http://www.docx4java.org/svn/docx4all/trunk/docx4all/

That's if you want to render it as a docx; otherwise, you could show an HTML or PDF preview.

Re: Have Document Preview In app

PostPosted: Mon May 13, 2013 3:17 am
by wreed12345
If I were to export it as a pdf (for the preview) how long would it take two create a pdf?

Re: Have Document Preview In app

PostPosted: Mon May 13, 2013 8:12 am
by jason
How long is a piece of string? ;-)

It depends on how long the docx is, and CPU/RAM resources.

There are also 2 methods. XSLFOExporterNonXSLT is faster, but doesn't have feature parity with the standard method.

Re: Have Document Preview In app

PostPosted: Mon May 13, 2013 9:34 am
by wreed12345
fair enough! I think I have enough information to make this a success. I'm only not to sure on how I'm going to go about displaying the pdf