Re: T5 as document management system
On Wed, 12 Jan 2011 19:29:55 -0200, stipenovi stipenovok...@gmail.com wrote: I have just one question? Does anyone suggest me how to build DMS in T5? For example: On server side i have DB (Postgres) and i am storing files (pdf, doc, ods, jpg, all) in a Blob. Now, i want to show these files in client side (browser), but not in default viewer, but in some viewer which is embeded on the T5 page. How can i do this? I can't see how this question is specifically for Tapestry instead of being a generic one about web development in Java in general. The problem here, as far as I can see, is how to provide the viewing part. Do you have any viewer in mind? PDFBox can render PDF to images. JPG, PNG, GIF, BMP and SVG are already handled by all decent browsers (IE doesn't handle SVG yet, not a decent browser). For them, create a page that returns a StreamResponse on its onActivate() method. I have no idea of viewers for Word and ODF files. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 as document management system
You can run openoffice headless (without gui) on a web server and it works as a service that can convert documents from one format to another - lets say doc to pdf. You can run firefox headless to render a webpage to virtual framebuffer. And in unix world there are many binary tools that can be used in the background to process files so probably there will be some tool to extract the text to create a description, to render page by page into jpeg, to ocr an image into text etc... Many opensource DMS work in this way ... investigate on it. Learn how they do it. -original message- From: Thiago H. de Paula Figueiredo method. I have no idea of viewers for Word and ODF files. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 as document management system
Thanks for prev. answer. You are right - it is both generic an T5 question for me. I was wondering is there some API for T5 similar to googleDocs, so i can manipulate with rendered stream? Thing is that user when see image/pdf must not have option to RightClick and for example do Copy, if this is an image, he can just see picture and read document, no printing, no nothing... -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-as-document-management-system-tp3338936p3339091.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 as document management system
On Wed, 12 Jan 2011 21:29:34 -0200, stipenovi stipenovok...@gmail.com wrote: Thanks for prev. answer. You are right - it is both generic an T5 question for me. I was wondering is there some API for T5 similar to googleDocs, so i can manipulate with rendered stream? You're talking about very different things here. T5 is a web framework, while Google Docs is a web site, a web app. On the other hand, if there's a Java package out there that has similar features to Google Docs, it will probably be easy to use inside T5. Thing is that user when see image/pdf must not have option to RightClick and for example do Copy, if this is an image, he can just see picture and read document, no printing, no nothing... I'm not following you. Do you want your users to be able to copy content text or not? Even if a document is converted to images, you can still print it from your browser. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org