Re: AW: PDF Viewer component

2015-02-20 Thread Thilo Tanner
: AW: PDF Viewer component Hello, it seems that somehow I believed Tapestry would be more magical than it is. Yeah, after reading your answers, it sure is stupid to believe that some web page can magically embed and render some pdf as part of a page. So, going back to my intent, I want

AW: AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
17:18 An: Tapestry users Betreff: Re: AW: PDF Viewer component On Thu, 19 Feb 2015 12:28:02 -0200, Poggenpohl, Daniel daniel.poggenp...@isst.fraunhofer.de wrote: Hello, Hi! well, embedding the component in a page shows not the PDF but the Java object identity, e.g

Re: PDF Viewer component

2015-02-19 Thread Lance Java
Use an iframe to load the StreamResponse page embedded in an html page. On 19 Feb 2015 13:35, Poggenpohl, Daniel daniel.poggenp...@isst.fraunhofer.de wrote: Hello, I am trying to build a component which can be embedded in a page and has a path parameter. If the parameter is set, the

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
...@isst.fraunhofer.de Sent: Thursday, February 19, 2015 14:33 To: users@tapestry.apache.org Subject: PDF Viewer component Hello, I am trying to build a component which can be embedded in a page and has a path parameter. If the parameter is set, the component should show/render the file contents

PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
Hello, I am trying to build a component which can be embedded in a page and has a path parameter. If the parameter is set, the component should show/render the file contents (a pdf). The StreamResponse class allows me to create a page containing a pdf that can be viewed. Is it possible to

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
. -Ursprüngliche Nachricht- Von: Poggenpohl, Daniel [mailto:daniel.poggenp...@isst.fraunhofer.de] Gesendet: Donnerstag, 19. Februar 2015 16:11 An: Tapestry users Betreff: AW: PDF Viewer component Hi, I've found out that the src value is a web app context relative path (could have thought

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
...@isst.fraunhofer.de Sent: Thursday, February 19, 2015 15:06 To: Tapestry users Subject: AW: PDF Viewer component Hi, a little bit more information (read: code)... I know the code is imperfect but this was just a quick and dirty setup to try inline document viewing. My Viewer component: public

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
Betreff: Re: PDF Viewer component Hi Daniel, What exactly is the issue with your code? We use something similar (and content type application/pdf); see below. I'm sure you will take care of it when the code works, but your implementation is extremely dangerous :-) Best, Thilo public abstract

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
Subject: AW: PDF Viewer component Hello, well, embedding the component in a page shows not the PDF but the Java object identity, e.g. InlineViewingStreamResponse@8173c6 Maybe the error is somewhere else? My component template is basically only ${showDocument()}. Re: iframe - If I use an iframe

Re: AW: PDF Viewer component

2015-02-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Feb 2015 12:28:02 -0200, Poggenpohl, Daniel daniel.poggenp...@isst.fraunhofer.de wrote: Hello, Hi! well, embedding the component in a page shows not the PDF but the Java object identity, e.g. InlineViewingStreamResponse@8173c6 Maybe the error is somewhere else? My component

Re: AW: PDF Viewer component

2015-02-19 Thread Thiago H de Paula Figueiredo
On Thu, 19 Feb 2015 13:50:09 -0200, Poggenpohl, Daniel daniel.poggenp...@isst.fraunhofer.de wrote: Hi, Hi! I think I've reduced the problem... Can I have a page containing a zone that displays the contents of a pdf file? It depends on what you're going to use to render the PDF file.

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
...@isst.fraunhofer.de Sent: Thursday, February 19, 2015 16:50 To: Tapestry users Subject: AW: PDF Viewer component Hi, I think I've reduced the problem... Can I have a page containing a zone that displays the contents of a pdf file? tml: body t:Zone t:id=inline id=inline /t:Zone

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
should update the zone with the StreamResponse directly? Regards, Daniel P. -Ursprüngliche Nachricht- Von: Poggenpohl, Daniel [mailto:daniel.poggenp...@isst.fraunhofer.de] Gesendet: Donnerstag, 19. Februar 2015 15:28 An: Tapestry users Betreff: AW: PDF Viewer component Hello, well

Re: AW: PDF Viewer component

2015-02-19 Thread Lance Java
Java @Inject private ComponentResources resources; public void getPdfLink() { return resources.createPageLink(path/to/pdfpage, someContext); } TML iframe src=${pdfLink} ...

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
Hi, a little bit more information (read: code)... I know the code is imperfect but this was just a quick and dirty setup to try inline document viewing. My Viewer component: public class Viewer { @Parameter(required=true) @Property String documentUrl;

Re: [Apache Mentoring Programme]JavaScript-only PDF viewer component

2010-09-14 Thread Charith Madusanka
hi! where i need submit my mid term work ? On Fri, Jul 30, 2010 at 1:07 PM, Ulrich Stärk u...@spielviel.de wrote: It is in fact OK to have non-ASL compatible licensed dependencies as long as they aren't part of the core and as long as we don't ship them with the distribution. At least that's

Re: [Apache Mentoring Programme]JavaScript-only PDF viewer component

2010-07-30 Thread Ulrich Stärk
It is in fact OK to have non-ASL compatible licensed dependencies as long as they aren't part of the core and as long as we don't ship them with the distribution. At least that's what I read. We will discuss this of course. One possibilty would be to use Apache PDFBox for rendering, that one

Re: [Apache Mentoring Programme]JavaScript-only PDF viewer component

2010-07-29 Thread Howard Lewis Ship
This looks quite interesting, though the question is the license of the libraries you plan to use. If they are fully compatible with the ASL, then the code can live on apache.org. If not, then this work might be best homed on an external project, such as my TapX, or ChenilleKit. On Wed, Jul 28,

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-21 Thread Ulrich Stärk
Hi Charith, as I've told you before the proposal you submitted contained nothing of what you came up with in the last days. The proposal deadline was on April 9th and you knew that. At that point you were nowhere close to a proper proposal nor did you show that you understood the problem or

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-20 Thread Charith Madusanka
Hi all, I want to know whether I have a chance to participate gsoc 2010 with this project ? Thank You charith.

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-19 Thread Ulrich Stärk
Since this will be an add-on module it is OK for it to depend on LGPL-licensed software. Uli On 18.04.2010 12:35, Charith Madusanka wrote: Hi all, Java PDF renderer library has been released by the Lesser General Public License(LGPLhttp://www.gnu.org/copyleft/lesser.html) and Google Map API

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-18 Thread Charith Madusanka
Hi all, Java PDF renderer library has been released by the Lesser General Public License(LGPL http://www.gnu.org/copyleft/lesser.html) and Google Map API have Google Map Terms of Service(http://code.google.com/apis/maps/terms.html ). So is' it ok to release Apache Software License (Tapestry

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-16 Thread Charith Madusanka
Hi Alex, in my opinion, you shouldn't worry about the app engine, it's a special case. If you work it out for the general tapestry case where the PDF is read from a file or a stream, that'll be plenty. Thank for your reply.Now I'm on the way succeed my work. If you have any suggestion

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Apr 2010 00:56:00 -0300, Charith Madusanka charithc...@gmail.com wrote: hi Uli and Thiago , Hi! What do you think about this method. Is this method is ok for render PDF file to Images ? I think that's the only viable way of doing it without delegating the rendering to

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Piero Sartini
maybe PDFBox could be used? - http://pdfbox.apache.org/ - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Ulrich Stärk
That's one of the tasks that have to be done: evaluating existing libraries. On 15.04.2010 14:49, Piero Sartini wrote: maybe PDFBox could be used? - http://pdfbox.apache.org/ - To unsubscribe, e-mail:

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Charith Madusanka
hi Piero maybe PDFBox could be used? - http://pdfbox.apache.org/ nice tip... thanx charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Charith Madusanka
Hi Thiago and Uli, Thank you very much for your comments. They are very helpful for me. Now I'm planning to show the pages to the user by using StreamResponse and also looking for App Engine problem. Thanx charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Alex Kotchnev
Charith, in my opinion, you shouldn't worry about the app engine, it's a special case. If you work it out for the general tapestry case where the PDF is read from a file or a stream, that'll be plenty. Regards, Alex K On Thu, Apr 15, 2010 at 3:16 PM, Charith Madusanka

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Charith Madusanka
Hi Alex, One issue to investigate is whether you actually need a java.io.File to do this or not. I think is not, You can generate pdf using another method. charith.

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Charith Madusanka
hi Uli , What do you think my method. This method is ok for render PDF file to Images ? if you have any suggestion please send me. charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Dmitry Gusev
Alex, In Google App Engine you may get another problem, the one associated with Java 2D. Check this issue as a reference: http://code.google.com/p/googleappengine/issues/detail?id=1423 On Tue, Apr 13, 2010 at 21:11, Alex Kotchnev akoch...@gmail.com wrote: Charith, seems like as long as it

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Alex Kotchnev
Dmitry, good tip ! Thanks, Alex K On Wed, Apr 14, 2010 at 3:28 AM, Dmitry Gusev dmitry.gu...@gmail.comwrote: Alex, In Google App Engine you may get another problem, the one associated with Java 2D. Check this issue as a reference:

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Charith Madusanka
hi Uli and Thiago , What do you think about this method. Is this method is ok for render PDF file to Images ? if you have any suggestion please send me.It's great help to me. Thank you, charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-13 Thread Charith Madusanka
Hi , If any one can tell me , this method is ok for render PDF file to Images ? charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-13 Thread Alex Kotchnev
Charith, seems like as long as it works, it should be OK. One issue to investigate is whether you actually need a java.io.File to do this or not. I for one can't do much w/ java.io.File when my app is running in Google App Engine, so I ideally I'd like to be able to do the same from a regular

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-12 Thread Charith Madusanka
Hi , I'm writing simple Java program render PDF file to Images by using Java PDF render library. Code is given below and attach to the mail, import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException;

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-11 Thread Thiago H. de Paula Figueiredo
On Sun, Apr 11, 2010 at 12:32 AM, Charith Madusanka charithc...@gmail.com wrote: Hi Uli, Hi! Now looking Interface RenderSupport  package , I think it can be use full to enders the PDF to images and  shown to the user. I'm not following you. I can't see anything in RenderSupport that would

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-10 Thread Ben Gidley
Do you mean you are planning on using https://docs.google.com/viewer This is googles embedable PDF viewer. It should be relatively simple to write a tapestry control that uses it. https://docs.google.com/viewer Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Sat, Apr 10, 2010 at 3:41 AM,

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-10 Thread Ulrich Stärk
Yeah, but that's not what Thiago and I had in mind. We'd rather want some kind of Tapestry service that renders the PDF to images and a JavaScript control that communicates with that service and shows the pages to the user. Uli On 10.04.2010 08:14, Ben Gidley wrote: Do you mean you are

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-10 Thread Charith Madusanka
Hi Uli, Now looking Interface RenderSupport package , I think it can be use full to enders the PDF to images and shown to the user. This package support to all T5 component that render and also help to JavaScript generation. Interface RenderSupport(

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-09 Thread Charith Madusanka
Hi all , I need comments about my proposal. Charith On Thu, Apr 8, 2010 at 11:10 PM, Charith Madusanka charithc...@gmail.comwrote: *Proposal Title:* Google Map Module and JavaScript-only PDF viewer component *Student Name:* Charitha Madusanka Elvitigala * * *Student E-mail

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-09 Thread Charith Madusanka
http://wiki.apache.org/general/CharithElvitigala

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-09 Thread Charith Madusanka
Hi all, Project Reference Link... http://code.google.com/apis/ajax/ http://code.google.com/apis/maps/ http://wiki.apache.org/tapestry/FrontPage http://en.wikipedia.org/wiki/JavaScript charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-09 Thread Alex Kotchnev
Charith, it seems to me that with the Javascript PDF viewer you might be biting more than you can chew. PDF is not a very pleasant format to deal with, and in order to view it only in Javascript/HTML you'll need to convert the PDF to images. I few years ago I was doing something similar, and it

Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
*Proposal Title*: Google Map Module and JavaScript-only PDF viewer component * * *Student Name:* Charitha Madusanka Elvitigala * * *Student E-mail:* charithc...@gmail.com * * *Organization* Apache Tapestry * * *Project Assigned Mentor*: Thiago H. de Paula Figueiredo Ulrich Stärk

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Ulrich Stärk
Hello Charith, that sounds much more like a real proposal ;). I wonder though, why you would need SOAP for the JavaScript only PDF viewer? I think the easiest way would be to bind the PDF contents to be viewed to some parameter of the PDF viewer component, or load the contents asynchronously

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
Hi Uli , First of all I'm thank you for your comment :-) I wonder though, why you would need SOAP for the JavaScript only PDF viewer? Because I think Applications written in Java can easily integrate JavaScript only PDF viewer component with Web services using SOAP. Now i'm think load

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
Hi Uli , First of all I'm thank you for your comment :-) I wonder though, why you would need SOAP for the JavaScript only PDF viewer? Because I think Applications written in Java can easily integrate JavaScript only PDF viewer component with Web services using SOAP. Now i'm think load

Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
*Proposal Title:* Google Map Module and JavaScript-only PDF viewer component *Student Name:* Charitha Madusanka Elvitigala * * *Student E-mail:* charithc...@gmail.com * * *Organization* Apache Tapestry * * *Project Assigned Mentor*: Thiago H. de Paula Figueiredo Ulrich Stärk

JavaScript-only PDF viewer component and Google maps component (create nifty components) GSOC-2010

2010-04-07 Thread Charith Madusanka
I'm also interest to implement JavaScript-only PDF viewer component and Google maps component, because both component are base on the JavaScript.(and ajax) Google maps component, The GMap componet provides an interface to the Google Maps API within T5. It will provide users a clickable map