[Catalyst] C::V::PDF? (Anybody have one?)
Karl.Moens at marsh.com
Karl.Moens at marsh.com
Tue Jan 9 11:21:31 GMT 2007
Marcello Romani wrote:
>
From: Marcello Romani <mromani at ottotecnica.com>
> Subject: Re: [Catalyst] C::V::PDF? (Anybody have one?)
> To: The elegant MVC web framework <catalyst at lists.rawmode.org>
> Message-ID: <45A34DD3.2000403 at ottotecnica.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dylan Vanderhoof ha scritto:
> > I figured I'd ask here real quickly before I try to write one.
> >
> > Anybody made a Catalyst::View::PDF of some sort? It looks like I'm
> > going to have to be dealing with some PDF output, so I figured I'd
avoid
> > reinventing the wheel if at all possible.
> >
> > Thanks,
> > Dylan
> >
> > _______________________________________________
> > List: Catalyst at 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/
> >
> >
>
> If you know how to write LaTeX source docs, I suggest looking at
>
> http://www.catalystframework.org/calendar/2006/12
>
> --
> Marcello Romani
> Responsabile IT
> Ottotecnica s.r.l.
> http://www.ottotecnica.com
>
I am using LaTex myself to make PDF-reports out of a MySQL database, but I
have foregone the use of special modules, instead using the good old
"backtick system" call to run PDFLaTeX.
My Perl script gets the data out of the database, puts these in a stash,
then dynamically writes a TeX file (thanks to Template::Toolkit) that gets
handed over to PDFLaTeX. The output of the backtick system-call goes into
a regex which checks if there were any LaTeX errors (a '!' in the first
position on a line indicates an error) or whether the LaTeX file needs to
be run a few more times to get all cross-references and tables right.
I see no fundamental problem to put all this into a "view" class, but the
necessity to re-run LaTeX several times to get everything right needs to
be catered for, which unfortunately Template::Latex does not yet do!
Karl
aka CountZero on Perlmonks.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This message and any attachments are confidential. If you have received
this message in error please delete it from your system. If you require
any assistance please notify the sender. Thank You.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Catalyst
mailing list