Re: [Catalyst] output to tt2 and pdf

2007-08-09 Thread Ulf Lenski
thanks for helping, I'll try it now!
Ulf.

Matt S Trout schrieb:
> On Wed, Aug 08, 2007 at 04:01:25PM +0200, Ulf Lenski wrote:
>   
>> Hi,
>> on http://www.catalystframework.org i found:
>> "And in case you want PNG or PDF output, you'll need just a few lines..."
>> where can I find an example for the PDF output?
>>
>> What I need:
>> The HTML-ouput in 1:1 as pdf-download on the same page!
>>
>> Example:
>>
>> I create a list of names in the controller bla and bring this list to a
>> web-page via TT:
>> 
>
> http://search.cpan.org/~andrewf/Template-Latex-2.17/lib/Template/Plugin/Latex.pm
>
> TT can make PDFs too.
>
>   


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] output to tt2 and pdf

2007-08-08 Thread Matt Rosin
> http://search.cpan.org/~andrewf/Template-Latex-2.17/lib/Template/Plugin/Latex.pm
>
> TT can make PDFs too.

I also crawled cpan thinking there might be a magic Catalyst View. The
above looks very nice and powerful though of course requires that you
write in latex. This is of course not a big problem but I was
wondering if anyone has used PDF::Reuse with TT. For example if you
drew a PDF form in OpenOffice Writer, and printed it as a PDF, it is
my impression anyway that you could then use it as a very fast
precompiled form (well maybe the latex plugin is also precompiling I'd
presume).

I'm actually curious also since I was examining latex and other
options (inkscape?) to make a system to generate professional looking
restaurant menus for my sister's restaurant www.michaelsonthehill.com
for example the current summer menu I made in OpenOffice and printed
as a PDF. And I have another client with a PDF order form..

Anyway I will look more at the latex module too. However I may not be
able to use latex on the server I will be renting. Hm time to start
another thread..

Regards,

Matt Rosin

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] output to tt2 and pdf

2007-08-08 Thread Matt S Trout
On Wed, Aug 08, 2007 at 04:01:25PM +0200, Ulf Lenski wrote:
> Hi,
> on http://www.catalystframework.org i found:
> "And in case you want PNG or PDF output, you'll need just a few lines..."
> where can I find an example for the PDF output?
> 
> What I need:
> The HTML-ouput in 1:1 as pdf-download on the same page!
> 
> Example:
> 
> I create a list of names in the controller bla and bring this list to a
> web-page via TT:

http://search.cpan.org/~andrewf/Template-Latex-2.17/lib/Template/Plugin/Latex.pm

TT can make PDFs too.

-- 
  Matt S Trout   Need help with your Catalyst or DBIx::Class project?
   Technical DirectorWant a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/http://www.shadowcat.co.uk/ 

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] output to tt2 and pdf

2007-08-08 Thread Ulf Lenski
Hi,
on http://www.catalystframework.org i found:
"And in case you want PNG or PDF output, you'll need just a few lines..."
where can I find an example for the PDF output?

What I need:
The HTML-ouput in 1:1 as pdf-download on the same page!

Example:

I create a list of names in the controller bla and bring this list to a
web-page via TT:

sub list : Local
{
my ( $self, $c) = @_;
$c->stash->{name}  = [ $c->model('XY::Name')->all];
$c->stash->{template} = 'name.tt2'
}

localhost:3000/bla/list ---> make a list of all names

On the same page I would like to give the user the option (as a link?)
to download this list of names as a pdf-file.

How can I handle this???

thanks for help - ulf.





___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/