Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To upload multiple files I use <a href="http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf?c=fileUpload&amp;tab=usage" rel="nofollow">RichFaces rich:fileUpload</a> component.</p> <p>Concerning the preview, I've got the similar problem and the best I found after couple of days of googling is following.</p> <p><a href="http://www.alfresco.com/" rel="nofollow">Alfresco</a> has the same problem and resolved it with :</p> <ul> <li>An open office which runs in server mode (socket) and all the office documents are sent by alfresco to open office in order to convert them in PDF</li> <li>Those PDF are converted to .swf viewer thanks to <a href="http://www.swftools.org/" rel="nofollow">SWFTOOLS</a></li> <li>This .swf is integrated in the HTML</li> <li>For images, it uses <a href="http://www.imagemagick.org/" rel="nofollow">ImageMagick</a> to create small version of the file I suppose</li> </ul> <p>Personnaly, I will try to implement it this way :</p> <ul> <li>Converting office documents to PDF thanks to open office in socket mode</li> <li>Transform the first page of the PDF into a PNG thanks to <a href="http://www.jpedal.org/open_source_pdf_viewer_download.php" rel="nofollow">JPedal</a> library</li> <li>Diplay that PNG to the end user</li> <li>For images I would perhaps use ImageMagick too ... but for now, I'm using <a href="http://seamframework.org/" rel="nofollow">Seam</a> <a href="http://docs.jboss.org/seam/2.2.1.Final/ui/apidocs/org/jboss/seam/ui/graphicImage/Image.html#scaleToFit%28int,%20int%29" rel="nofollow">Image.scaleToFit</a> API</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload