Re: AW: PDF Viewer component

2015-02-20 Thread Thilo Tanner
owsers). There are also PDF rendering engines for Java, so you could use Applets (beware) or convert the PDF into an image (SVG for example). Best, Thilo From: Poggenpohl, Daniel Sent: Thursday, February 19, 2015 22:12 To: Tapestry users Subject: AW:

AW: AW: PDF Viewer component

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

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 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. -- Thiago H. de Paula Figueiredo Tapes

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 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 template is basically only ${showDocu

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
er.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 of that myself...). So the embedding of another page shouldn't be a prob

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
ng event links? Or do you mean that I 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:

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

AW: PDF Viewer component

2015-02-19 Thread Poggenpohl, Daniel
} catch (UnsupportedEncodingException e) { // skip } } } } From: Poggenpohl, Daniel 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

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;